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 +4 -4
- data/lib/applitools/utils/eyes_selenium_utils.rb +8 -3
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de4ea6561bb2f4b74944e8b7a29919102218b2c157d89676adc8439657950c97
|
4
|
+
data.tar.gz: 2ca6209defdc119db2987b019fcf90fbd285a9e6329c2c54da542b01b3de80b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 % {
|
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
|
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.15.
|
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-
|
11
|
+
date: 2019-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|