File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,20 @@ describe('Test hover and click interactions', function() {
246
246
pointNumber : 0
247
247
} ) ;
248
248
249
+ // after the restyle, autorange changes the y range
250
+ var run2 = makeRunner ( [ 435 , 106 ] , {
251
+ x : 8 ,
252
+ y : 18 ,
253
+ curveNumber : 2 ,
254
+ pointNumber : 0
255
+ } ) ;
256
+
249
257
Plotly . plot ( gd , _mock )
250
258
. then ( run )
251
259
. then ( function ( ) {
252
260
return Plotly . restyle ( gd , 'visible' , false , [ 1 ] ) ;
253
261
} )
254
- . then ( run )
262
+ . then ( run2 )
255
263
. catch ( fail )
256
264
. then ( done ) ;
257
265
} ) ;
@@ -269,12 +277,23 @@ describe('Test hover and click interactions', function() {
269
277
pointNumber : 0
270
278
} ) ;
271
279
280
+ // after the restyle, autorange changes the x AND y ranges
281
+ // I don't get why the x range changes, nor why the y changes in
282
+ // a different way than in the previous test, but they do look
283
+ // correct on the screen during the test.
284
+ var run2 = makeRunner ( [ 426 , 116 ] , {
285
+ x : 8 ,
286
+ y : 18 ,
287
+ curveNumber : 2 ,
288
+ pointNumber : 0
289
+ } ) ;
290
+
272
291
Plotly . plot ( gd , _mock )
273
292
. then ( run )
274
293
. then ( function ( ) {
275
294
return Plotly . restyle ( gd , 'visible' , false , [ 1 ] ) ;
276
295
} )
277
- . then ( run )
296
+ . then ( run2 )
278
297
. catch ( fail )
279
298
. then ( done ) ;
280
299
} ) ;
You can’t perform that action at this time.
0 commit comments