eyes_core 3.9.0 → 3.10.0

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: 3cd56839e5721775879c8103fe725889fd804eb6
4
- data.tar.gz: 1a22c8653ccf48d6021b5d6416e2de18d55c98ca
3
+ metadata.gz: f84cff0084421e8499a55d27597dca8fc4b34599
4
+ data.tar.gz: 59cb82f795191e1a337f654c3e55832d1392c9a0
5
5
  SHA512:
6
- metadata.gz: 024443174ee13d25181fbdd8f92fdc2daced4cbbf43394b189d7f22921c867d1e64e700f179c79d433072b5f390b065ecc3f37b2d992d8692b574066aa6cc109
7
- data.tar.gz: ab4d97600d218dbd6f0920ae3230638c2c4b25898dd074176b548b86e76ac1bad15d16c3bef49309ba38f1052cca930c12b69a58e9c082c809b9ee13d05cd7e7
6
+ metadata.gz: ff55bccbb6b1a8005b44256271aaf5ad1548687ff31c91e6b12f1885b116c81fc8aced88533d8b5c51d899eb707c475316070e30cf03b2cc8b19c0f659fb92c0
7
+ data.tar.gz: 5f8f3979452406edc023c5a4383f64d3903f33dc0cb3805e829d2c97c8fa91c3d0fa3afe04df8f0c158eff6cba365199ec8a4989f6b6c7a41205dd9759d10862
@@ -58,7 +58,8 @@ module Applitools
58
58
  self.failed = false
59
59
  @inferred_environment = nil
60
60
  @properties = []
61
-
61
+ @server_scale = 0
62
+ @server_remainder = 0
62
63
  get_app_output_method = ->(r, s) { get_app_output_with_screenshot r, s }
63
64
 
64
65
  app_output_provider.instance_eval do
@@ -67,7 +68,10 @@ module Applitools
67
68
  end
68
69
  end
69
70
 
70
- @default_match_settings = { match_level: Applitools::MATCH_LEVEL[:strict], exact: nil }
71
+ @default_match_settings = { match_level: Applitools::MATCH_LEVEL[:strict],
72
+ exact: nil,
73
+ scale: server_scale,
74
+ remainder: server_remainder}
71
75
  end
72
76
 
73
77
  def batch
@@ -94,6 +98,24 @@ module Applitools
94
98
  @default_match_settings[:match_level]
95
99
  end
96
100
 
101
+ def server_scale=(ratio)
102
+ @server_scale = ratio
103
+ @default_match_settings[:scale] = ratio
104
+ end
105
+
106
+ def server_scale
107
+ @server_scale
108
+ end
109
+
110
+ def server_remainder=(ratio)
111
+ @server_remainder = ratio
112
+ @default_match_settings[:remainder] = ratio
113
+ end
114
+
115
+ def server_remainder
116
+ @server_remainder
117
+ end
118
+
97
119
  def disabled=(value)
98
120
  @disabled = Applitools::Utils.boolean_value value
99
121
  end
@@ -271,6 +293,9 @@ module Applitools
271
293
  match_window_data.update_baseline_if_new = save_new_tests
272
294
  match_window_data.update_baseline_if_different = save_failed_tests
273
295
  match_window_data.remove_session_if_matching = remove_session_if_matching
296
+ match_window_data.scale = server_scale
297
+ match_window_data.remainder = server_remainder
298
+
274
299
  match_window_task = Applitools::MatchSingleTask.new(
275
300
  logger,
276
301
  match_timeout,
@@ -33,7 +33,9 @@ module Applitools
33
33
  'MinDiffWidth' => 0,
34
34
  'MinDiffHeight' => 0,
35
35
  'MatchThreshold' => 0
36
- }
36
+ },
37
+ 'scale' => 0,
38
+ 'remainder' => 0
37
39
  },
38
40
  'IgnoreExpectedOutputSettings' => false,
39
41
  'ForceMatch' => false,
@@ -28,7 +28,9 @@ module Applitools
28
28
  'MinDiffWidth' => 0,
29
29
  'MinDiffHeight' => 0,
30
30
  'MatchThreshold' => 0
31
- }
31
+ },
32
+ 'scale' => 0,
33
+ 'remainder' => 0
32
34
  },
33
35
  'IgnoreExpectedOutputSettings' => false,
34
36
  'ForceMatch' => false,
@@ -124,6 +126,22 @@ module Applitools
124
126
  current_data['Options']['ImageMatchSettings']['MatchLevel']
125
127
  end
126
128
 
129
+ def scale=(value)
130
+ current_data['Options']['ImageMatchSettings']['scale'] = value
131
+ end
132
+
133
+ def scale
134
+ current_data['Options']['ImageMatchSettings']['scale']
135
+ end
136
+
137
+ def remainder=(value)
138
+ current_data['Options']['ImageMatchSettings']['remainder'] = value
139
+ end
140
+
141
+ def remainder
142
+ current_data['Options']['ImageMatchSettings']['remainder']
143
+ end
144
+
127
145
  def read_target(target, driver)
128
146
  # options
129
147
  target_options_to_read.each do |field|
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.9.0'.freeze
2
+ VERSION = '3.10.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.9.0
4
+ version: 3.10.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-05-27 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png