Skip to content

Commit bfed46b

Browse files
committed
more strict tests to lock issue 5841
1 parent 3e52b94 commit bfed46b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

test/jasmine/tests/hover_label_test.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5581,12 +5581,48 @@ describe('hovermode: (x|y)unified', function() {
55815581

55825582
Plotly.newPlot(gd, fig)
55835583
.then(function(gd) {
5584+
_hover(gd, { xpx: 50, ypx: 200 });
5585+
assertLabel({title: 'Jan 1, 1970', items: [
5586+
'trace 0 : 11',
5587+
'trace 1 : 1'
5588+
]});
5589+
55845590
_hover(gd, { xpx: 100, ypx: 200 });
55855591
assertLabel({title: 'Jan 1, 1970', items: [
55865592
'trace 0 : 11',
55875593
'trace 1 : 1'
55885594
]});
55895595

5596+
_hover(gd, { xpx: 150, ypx: 200 });
5597+
assertLabel({title: 'Jul 1, 1970', items: [
5598+
'trace 0 : 12',
5599+
'trace 1 : 2'
5600+
]});
5601+
5602+
_hover(gd, { xpx: 200, ypx: 200 });
5603+
assertLabel({title: 'Jul 1, 1970', items: [
5604+
'trace 0 : 12',
5605+
'trace 1 : 2'
5606+
]});
5607+
5608+
_hover(gd, { xpx: 250, ypx: 200 });
5609+
assertLabel({title: 'Jul 1, 1970', items: [
5610+
'trace 0 : 12',
5611+
'trace 1 : 2'
5612+
]});
5613+
5614+
_hover(gd, { xpx: 300, ypx: 200 });
5615+
assertLabel({title: 'Jan 1, 1971', items: [
5616+
'trace 0 : 13',
5617+
'trace 1 : 3'
5618+
]});
5619+
5620+
_hover(gd, { xpx: 350, ypx: 200 });
5621+
assertLabel({title: 'Jan 1, 1971', items: [
5622+
'trace 0 : 13',
5623+
'trace 1 : 3'
5624+
]});
5625+
55905626
_hover(gd, { xpx: 400, ypx: 200 });
55915627
assertLabel({title: 'Jan 1, 1971', items: [
55925628
'trace 0 : 13',

0 commit comments

Comments
 (0)