eyes_core 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cdf33bdcd17edc90839aa972220da8f8a7b1703
4
- data.tar.gz: f90b947ead660f07029641479835bfb7da5828a1
3
+ metadata.gz: 65a63d6b6368ae920b07ea4b8af795628f19fb4f
4
+ data.tar.gz: a0336f5ed5f9dba8b367cd36bdec75cd5650db99
5
5
  SHA512:
6
- metadata.gz: 06f4fe2a9ba78498e0fc90d3fa360cb9f2bdef28c222926e71e4d05f5ea04a90fbb777d2d11c7d56ef5c076bb85a0745c167f32d5e6b85630447d001cbc35afe
7
- data.tar.gz: ec9ba5bfac4a9577def13baee3bbb4191c0490e28da79c63b260a2f0401ff1643ebe08bae58732ad72642479f24d0ade4e50687a393b52aae1845f9a2bbe58dc
6
+ metadata.gz: 5243869f82ef38247c7c7422ff4062063e53c99ebca81bf45630d46c6752c6e77257817196c3929ee25ba47c8f560cfd44a194b31c041fa21dd850afd5dcf21c
7
+ data.tar.gz: 6b62b19d557bb951082b729f74028e87f7dc1becbf6aa1d016764524b092788a594c7a20b20634409df04d7f1269b08197a87b2976b8839023efc0bcd4221e64
@@ -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.13.0'.freeze
2
+ VERSION = '3.14.0'.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.13.0
4
+ version: 3.14.0
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-11-05 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png