Skip to content

Commit 60573f6

Browse files
committed
adjust hover label test to work in both Chrome and FF
1 parent 86e0303 commit 60573f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jasmine/tests/hover_label_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ describe('hover on fill', function() {
726726
mock.data.forEach(function(trace) { trace.hoveron = 'fills'; });
727727

728728
Plotly.plot(createGraphDiv(), mock.data, mock.layout).then(function() {
729-
return assertLabelsCorrect([242, 142], [249.175, 133.8], 'trace 2');
729+
return assertLabelsCorrect([242, 142], [252, 133.8], 'trace 2');
730730
}).then(function() {
731-
return assertLabelsCorrect([242, 292], [231.125, 210], 'trace 1');
731+
return assertLabelsCorrect([242, 292], [233, 210], 'trace 1');
732732
}).then(function() {
733733
return assertLabelsCorrect([147, 252], [158.925, 248.1], 'trace 0');
734734
}).then(done);
@@ -749,7 +749,7 @@ describe('hover on fill', function() {
749749
}).then(function() {
750750
return assertLabelsCorrect([237, 218], [266.75, 265], 'trace 1');
751751
}).then(function() {
752-
return assertLabelsCorrect([237, 251], [247.7, 254], 'trace 0');
752+
return assertLabelsCorrect([237, 240], [247.7, 254], 'trace 0');
753753
}).then(function() {
754754
// zoom in to test clipping of large out-of-viewport shapes
755755
return Plotly.relayout(gd, {

0 commit comments

Comments
 (0)