@@ -266,12 +266,12 @@ describe('Test cone interactions', function() {
266
266
267
267
function _hover ( ) {
268
268
mouseEvent ( 'mouseover' , 200 , 200 ) ;
269
- return delay ( 20 ) ( ) ;
270
269
}
271
270
272
271
Plotly . plot ( gd , fig )
273
272
. then ( delay ( 20 ) )
274
273
. then ( _hover )
274
+ . then ( delay ( 20 ) )
275
275
. then ( function ( ) {
276
276
assertHoverLabelContent ( {
277
277
nums : [ 'x: 2' , 'y: 2' , 'z: 2' , 'norm: 3.00' ] . join ( '\n' )
@@ -281,6 +281,7 @@ describe('Test cone interactions', function() {
281
281
} )
282
282
. then ( delay ( 20 ) )
283
283
. then ( _hover )
284
+ . then ( delay ( 20 ) )
284
285
. then ( function ( ) {
285
286
assertHoverLabelContent ( {
286
287
nums : [ 'u: 0' , 'v: 3' , 'w: 0' ] . join ( '\n' )
@@ -302,6 +303,7 @@ describe('Test cone interactions', function() {
302
303
} )
303
304
. then ( delay ( 20 ) )
304
305
. then ( _hover )
306
+ . then ( delay ( 20 ) )
305
307
. then ( function ( ) {
306
308
assertHoverLabelContent ( {
307
309
name : 'trace 0' ,
@@ -317,6 +319,7 @@ describe('Test cone interactions', function() {
317
319
} )
318
320
. then ( delay ( 20 ) )
319
321
. then ( _hover )
322
+ . then ( delay ( 20 ) )
320
323
. then ( function ( ) {
321
324
assertHoverLabelContent ( {
322
325
name : 'LOOKOUT' ,
@@ -330,7 +333,6 @@ describe('Test cone interactions', function() {
330
333
it ( '@gl should display hover labels (multi-trace case)' , function ( done ) {
331
334
function _hover ( ) {
332
335
mouseEvent ( 'mouseover' , 282 , 240 ) ;
333
- return delay ( 20 ) ( ) ;
334
336
}
335
337
336
338
Plotly . plot ( gd , [ {
@@ -359,6 +361,7 @@ describe('Test cone interactions', function() {
359
361
} )
360
362
. then ( delay ( 20 ) )
361
363
. then ( _hover )
364
+ . then ( delay ( 20 ) )
362
365
. then ( function ( ) {
363
366
assertHoverLabelContent ( {
364
367
nums : [ 'x: 1' , 'y: 1' , 'z: 1' , 'norm: 1.41' ] . join ( '\n' ) ,
0 commit comments