File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1362,8 +1362,8 @@ describe('Test geo interactions', function() {
1362
1362
. toBe ( hoverLabelCnt , msg ) ;
1363
1363
}
1364
1364
1365
- var px = 390 ;
1366
- var py = 290 ;
1365
+ var px = 200 ;
1366
+ var py = 200 ;
1367
1367
var cnt = 0 ;
1368
1368
1369
1369
Plotly . newPlot ( gd , fig ) . then ( function ( ) {
@@ -1374,14 +1374,14 @@ describe('Test geo interactions', function() {
1374
1374
1375
1375
return new Promise ( function ( resolve ) {
1376
1376
var interval = setInterval ( function ( ) {
1377
- px + = 2 ;
1377
+ py - = 2 ;
1378
1378
mouseEvent ( 'mousemove' , px , py ) ;
1379
1379
1380
- if ( px < 402 ) {
1381
- _assert ( '- px ' + px , 1 ) ;
1380
+ if ( py > 175 ) {
1381
+ _assert ( '- py ' + py , 1 ) ;
1382
1382
expect ( cnt ) . toBe ( 0 , 'no plotly_unhover event so far' ) ;
1383
1383
} else {
1384
- _assert ( '- px ' + px , 0 ) ;
1384
+ _assert ( '- py ' + py , 0 ) ;
1385
1385
expect ( cnt ) . toBe ( 1 , 'plotly_unhover event count' ) ;
1386
1386
1387
1387
clearInterval ( interval ) ;
You can’t perform that action at this time.
0 commit comments