File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -114,15 +114,29 @@ for(var i = 0; i < allMockList.length; i++) {
114
114
// See https://github.com/plotly/plotly.js/issues/7075
115
115
if ( isMapbox ) continue ;
116
116
117
- var isOtherFlaky = [
118
- // list flaky mocks other than mapbox:
117
+ var flakyMap = [
118
+ // more flaky
119
119
'map_density0-legend' ,
120
120
'map_osm-style' ,
121
121
'map_predefined-styles1' ,
122
122
'map_predefined-styles2' ,
123
+
124
+ 'mapbox_angles' ,
125
+ 'mapbox_layers' ,
126
+ 'mapbox_custom-style' ,
127
+ 'mapbox_geojson-attributes'
128
+ ] . indexOf ( mockName ) !== - 1 ;
129
+
130
+ var otherFlaky = [
131
+ // list flaky mocks other than maps:
123
132
'gl3d_bunny-hull'
124
133
] . indexOf ( mockName ) !== - 1 ;
125
134
135
+ var threshold =
136
+ flakyMap ? 1 :
137
+ otherFlaky ? 0.15 :
138
+ 0 ;
139
+
126
140
if ( mathjax3 ) mockName = 'mathjax3___' + mockName ;
127
141
128
142
var imagePaths = getImagePaths ( mockName ) ;
@@ -164,16 +178,6 @@ for(var i = 0; i < allMockList.length; i++) {
164
178
height : height
165
179
} ) ;
166
180
167
- var shouldBePixelPerfect = ! ( isMapbox || isOtherFlaky ) ;
168
-
169
- var threshold = shouldBePixelPerfect ? 0 : [
170
- // more flaky
171
- 'mapbox_angles' ,
172
- 'mapbox_layers' ,
173
- 'mapbox_custom-style' ,
174
- 'mapbox_geojson-attributes'
175
- ] . indexOf ( mockName ) !== - 1 ? 1 : 0.15 ;
176
-
177
181
if ( virtualWebgl ) {
178
182
threshold = Math . max ( 0.4 , threshold ) ;
179
183
if ( [
You can’t perform that action at this time.
0 commit comments