Skip to content

Commit 647b0dc

Browse files
committed
adjust geo test - previous test used to fail locally on master too
1 parent d5883d2 commit 647b0dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jasmine/tests/geo_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1362,8 +1362,8 @@ describe('Test geo interactions', function() {
13621362
.toBe(hoverLabelCnt, msg);
13631363
}
13641364

1365-
var px = 390;
1366-
var py = 290;
1365+
var px = 200;
1366+
var py = 200;
13671367
var cnt = 0;
13681368

13691369
Plotly.newPlot(gd, fig).then(function() {
@@ -1374,14 +1374,14 @@ describe('Test geo interactions', function() {
13741374

13751375
return new Promise(function(resolve) {
13761376
var interval = setInterval(function() {
1377-
px += 2;
1377+
py -= 2;
13781378
mouseEvent('mousemove', px, py);
13791379

1380-
if(px < 402) {
1381-
_assert('- px ' + px, 1);
1380+
if(py > 175) {
1381+
_assert('- py ' + py, 1);
13821382
expect(cnt).toBe(0, 'no plotly_unhover event so far');
13831383
} else {
1384-
_assert('- px ' + px, 0);
1384+
_assert('- py ' + py, 0);
13851385
expect(cnt).toBe(1, 'plotly_unhover event count');
13861386

13871387
clearInterval(interval);

0 commit comments

Comments
 (0)