File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 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() {
246246 pointNumber : 0
247247 } ) ;
248248
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+
249257 Plotly . plot ( gd , _mock )
250258 . then ( run )
251259 . then ( function ( ) {
252260 return Plotly . restyle ( gd , 'visible' , false , [ 1 ] ) ;
253261 } )
254- . then ( run )
262+ . then ( run2 )
255263 . catch ( fail )
256264 . then ( done ) ;
257265 } ) ;
@@ -269,12 +277,23 @@ describe('Test hover and click interactions', function() {
269277 pointNumber : 0
270278 } ) ;
271279
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+
272291 Plotly . plot ( gd , _mock )
273292 . then ( run )
274293 . then ( function ( ) {
275294 return Plotly . restyle ( gd , 'visible' , false , [ 1 ] ) ;
276295 } )
277- . then ( run )
296+ . then ( run2 )
278297 . catch ( fail )
279298 . then ( done ) ;
280299 } ) ;
You can’t perform that action at this time.
0 commit comments