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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 345d3a061eb0bf58d16612a3d980272c7403f6c1
4
- data.tar.gz: 9e1616f8250a11e3ea2f0e01c8e03f97a9b5616f
3
+ metadata.gz: cb52c6e800a0c68741e5457a6a0701ecd7a140dd
4
+ data.tar.gz: 236b3a5872b65eac9af5adf2af8f992def5ef6ed
5
5
  SHA512:
6
- metadata.gz: 4c89e9f459b886ae3d5e4925995b87284fd6eca7856da6732d8769533625674400500a19f38f1bbd03b7dad5b89341747cbeb9f2504088ec522dfaf144b80605
7
- data.tar.gz: 0fdb85a76f80a5afd0809fc66356bb07e666ebb132b59f4f0464bcc4ffd641a64aee174b872b600074432d7491f1f02e1d27adbe4b44f60d402ff5e857fb7a50
6
+ metadata.gz: 9eeb6512ea56c8b3d8e2caa4c187a121d841587d3c97072094a24085576313f2bc13f6de7ad2181b880a397b5b4a740fa6617a4badb52bd6079818cb691056ac
7
+ data.tar.gz: 56f36fd54268dabed644de5ab3eafa933a7cf3b229810918f9a36f805bc424f9b46033647565902cc6c98d78b978c3677934ef3645093e121cebdc759a883478
@@ -37,9 +37,7 @@ def before_feature(scenario)
37
37
  step %(create eyes)
38
38
  end
39
39
 
40
- def after_feature(_scenario)
41
-
42
- end
40
+ def after_feature(_scenario) end
43
41
 
44
42
  def get_scenario_tags(scenario)
45
43
  @eyes_current_tags = {}
@@ -66,4 +66,4 @@ end
66
66
  Then(/^I check element "([^"]*)" with description "([^"]*)"$/) do |selector, description|
67
67
  step %(eyes tag is "#{description}")
68
68
  step %(I check element "#{selector}")
69
- end
69
+ end
@@ -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
- r.location = app_output.screenshot.convert_region_location(
229
- r.location,
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
- r.to_hash
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
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.14.1'.freeze
2
+ VERSION = '3.14.2'.freeze
3
3
  end
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png