eyes_core 3.15.32 → 3.15.33

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
  SHA256:
3
- metadata.gz: ac9b8316d893c583a1b530912afed2d2ef60ca65e505e0d322dd3f14c792ded6
4
- data.tar.gz: 4cb499b2c50de6e6eb112bee97a3592a2c528cdc44996c0c4631df2b99574720
3
+ metadata.gz: de4ea6561bb2f4b74944e8b7a29919102218b2c157d89676adc8439657950c97
4
+ data.tar.gz: 2ca6209defdc119db2987b019fcf90fbd285a9e6329c2c54da542b01b3de80b2
5
5
  SHA512:
6
- metadata.gz: '00852a853f192a2bd2b5204f617ba2ef0622deade5a4bd214d8f372965fee885503e071d62322840555e34d6f1ceded03ff26cb5a6d88d715e3d1962103baa8d'
7
- data.tar.gz: 1caa4083edd47f9d73ba8c7420d5b9cdf155e0074d0f9bef30b7989cd2ba365a5dc9d6cc940545b4eb6dfb92f1270118ef1420458458cbaec4355cd78193bcb8
6
+ metadata.gz: 6e39e8835ab28f9c5d92daea90f3fb85e6a07561f1f5de0e9555c72fbbfd6394f18ac7e816453d5c81215828f206e8c9b3c9a9eb418bee3546bcc7bf13b99fd0
7
+ data.tar.gz: c0c79f0d0781d9b6818a289822a92903c8111898797abc65c1c07c9af77caebd1fe7ff7c7928b65f32a260b128f7d570f589c0a0b44c6ceadc2cf15edad8c7bb
@@ -33,7 +33,7 @@ module Applitools::Utils
33
33
 
34
34
  # @!visibility private
35
35
  JS_GET_DEVICE_PIXEL_RATIO = <<-JS.freeze
36
- return window.devicePixelRatio;
36
+ return window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
37
37
  JS
38
38
 
39
39
  # @!visibility private
@@ -148,7 +148,7 @@ module Applitools::Utils
148
148
  %{element}.style['%{key}'] = '%{value}'
149
149
  JS
150
150
 
151
- JS_TRANSFORM_KEYS = ['transform', '-webkit-transform'].freeze
151
+ JS_TRANSFORM_KEYS = ['transform', '-webkit-transform', '-ms-transform', '-moz-transform'].freeze
152
152
 
153
153
  # @!visibility private
154
154
  OVERFLOW_HIDDEN = 'hidden'.freeze
@@ -260,8 +260,13 @@ module Applitools::Utils
260
260
  end
261
261
 
262
262
  def set_transforms(executor, value)
263
+ root_element = executor.browser.running_browser_name == :internet_explorer ? 'document.body' : 'document.documentElement'
263
264
  script = value.keys.map do |k|
264
- JS_SET_TRANSFORM_VALUE % { element: 'document.documentElement', key: k, value: value[k] }
265
+ JS_SET_TRANSFORM_VALUE % {
266
+ element: root_element,
267
+ key: k,
268
+ value: value[k]
269
+ }
265
270
  end.join('; ')
266
271
  executor.execute_script(script)
267
272
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.15.32'.freeze
4
+ VERSION = '3.15.33'.freeze
5
5
  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.15.32
4
+ version: 3.15.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-28 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png