eyes_core 3.14.1 → 3.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/calabash/eyes_hooks.rb +1 -3
- data/lib/applitools/calabash/steps/matchers.rb +1 -1
- data/lib/applitools/core/argument_guard.rb +1 -1
- data/lib/applitools/core/match_window_data.rb +3 -3
- data/lib/applitools/utils/eyes_selenium_utils.rb +2 -0
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb52c6e800a0c68741e5457a6a0701ecd7a140dd
|
4
|
+
data.tar.gz: 236b3a5872b65eac9af5adf2af8f992def5ef6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eeb6512ea56c8b3d8e2caa4c187a121d841587d3c97072094a24085576313f2bc13f6de7ad2181b880a397b5b4a740fa6617a4badb52bd6079818cb691056ac
|
7
|
+
data.tar.gz: 56f36fd54268dabed644de5ab3eafa933a7cf3b229810918f9a36f805bc424f9b46033647565902cc6c98d78b978c3677934ef3645093e121cebdc759a883478
|
@@ -29,7 +29,7 @@ module Applitools
|
|
29
29
|
def is_a?(param, param_name, klass)
|
30
30
|
return true if param.is_a? klass
|
31
31
|
raise Applitools::EyesIllegalArgument.new "Expected #{param_name} to be" \
|
32
|
-
" instance of #{klass}"
|
32
|
+
" instance of #{klass} (but got #{param.class.name})"
|
33
33
|
end
|
34
34
|
|
35
35
|
def raise_argument_error(error)
|
@@ -225,12 +225,12 @@ module Applitools
|
|
225
225
|
def convert_floating_regions_coordinates
|
226
226
|
return unless @need_convert_floating_regions_coordinates
|
227
227
|
self.floating_regions = @floating_regions.map do |r|
|
228
|
-
|
229
|
-
r
|
228
|
+
updated_region = app_output.screenshot.convert_region_location(
|
229
|
+
r,
|
230
230
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:context_relative],
|
231
231
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:screenshot_as_is]
|
232
232
|
)
|
233
|
-
|
233
|
+
updated_region.to_hash
|
234
234
|
end
|
235
235
|
@need_convert_floating_regions_coordinates = false
|
236
236
|
end
|
@@ -187,6 +187,7 @@ module Applitools::Utils
|
|
187
187
|
|
188
188
|
# @param [Applitools::Selenium::Driver] executor
|
189
189
|
def entire_page_size(executor)
|
190
|
+
return Applitools::MOCK_ENTIRE_SIZE if defined?(Applitools::MOCK_ENTIRE_SIZE)
|
190
191
|
metrics = page_metrics(executor)
|
191
192
|
max_document_element_height = [metrics[:client_height], metrics[:scroll_height]].max
|
192
193
|
max_body_height = [metrics[:body_client_height], metrics[:body_scroll_height]].max
|
@@ -198,6 +199,7 @@ module Applitools::Utils
|
|
198
199
|
end
|
199
200
|
|
200
201
|
def current_frame_content_entire_size(executor)
|
202
|
+
return Applitools::MOCK_ENTIRE_SIZE if defined?(Applitools::MOCK_ENTIRE_SIZE)
|
201
203
|
dimensions = executor.execute_script(JS_GET_CONTENT_ENTIRE_SIZE)
|
202
204
|
Applitools::RectangleSize.new(dimensions.first.to_i, dimensions.last.to_i)
|
203
205
|
rescue
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.14.
|
4
|
+
version: 3.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|