Skip to content

Commit 8ffbbca

Browse files
committed
adjust positions in sankey hover tests
1 parent 044129a commit 8ffbbca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/jasmine/tests/sankey_test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -669,15 +669,15 @@ describe('sankey tests', function() {
669669
Lib.clearThrottle();
670670
}
671671

672-
var node = [404, 302];
672+
var node = [410, 300];
673673
var link = [450, 300];
674674

675675
it('should show the correct hover labels', function(done) {
676676
var gd = createGraphDiv();
677677
var mockCopy = Lib.extendDeep({}, mock);
678678

679679
Plotly.newPlot(gd, mockCopy).then(function() {
680-
_hover(404, 302);
680+
_hover(410, 300);
681681

682682
assertLabel(
683683
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -697,7 +697,7 @@ describe('sankey tests', function() {
697697
return Plotly.relayout(gd, 'hoverlabel.font.family', 'Roboto');
698698
})
699699
.then(function() {
700-
_hover(404, 302);
700+
_hover(410, 300);
701701

702702
assertLabel(
703703
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -722,7 +722,7 @@ describe('sankey tests', function() {
722722
});
723723
})
724724
.then(function() {
725-
_hover(404, 302);
725+
_hover(410, 300);
726726

727727
assertLabel(
728728
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -753,7 +753,7 @@ describe('sankey tests', function() {
753753
});
754754
})
755755
.then(function() {
756-
_hover(404, 302);
756+
_hover(410, 300);
757757

758758
assertLabel(
759759
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -815,7 +815,7 @@ describe('sankey tests', function() {
815815
mockCopy.data[0].link.customdata[61] = ['linkCustomdata0', 'linkCustomdata1'];
816816

817817
Plotly.newPlot(gd, mockCopy).then(function() {
818-
_hover(404, 302);
818+
_hover(410, 300);
819819

820820
assertLabel(
821821
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -838,7 +838,7 @@ describe('sankey tests', function() {
838838
});
839839
})
840840
.then(function() {
841-
_hover(404, 302);
841+
_hover(410, 300);
842842

843843
assertLabel(
844844
[ 'hovertemplate', '447TWh', '447.48', 'nodeCustomdata0/nodeCustomdata1', 'trace 0'],
@@ -890,7 +890,7 @@ describe('sankey tests', function() {
890890

891891
Plotly.newPlot(gd, mockCopy)
892892
.then(function() {
893-
_hover(404, 302);
893+
_hover(410, 300);
894894

895895
assertLabel(
896896
['Solid', 'incoming flow count: 4', 'outgoing flow count: 3', '447TWh'],
@@ -1054,7 +1054,7 @@ describe('sankey tests', function() {
10541054
var mockCopy = Lib.extendDeep({}, mock);
10551055

10561056
Plotly.newPlot(gd, mockCopy)
1057-
.then(function() { _hover(404, 302); })
1057+
.then(function() { _hover(410, 300); })
10581058
.then(function() {
10591059
assertHoverLabelContent({
10601060
nums: 'Solid\nincoming flow count: 4\noutgoing flow count: 3',
@@ -1064,7 +1064,7 @@ describe('sankey tests', function() {
10641064
.then(function() {
10651065
return Plotly.restyle(gd, 'hoverlabel.namelength', 3);
10661066
})
1067-
.then(function() { _hover(404, 302); })
1067+
.then(function() { _hover(410, 300); })
10681068
.then(function() {
10691069
assertHoverLabelContent({
10701070
nums: 'Solid\nincoming flow count: 4\noutgoing flow count: 3',
@@ -1086,7 +1086,7 @@ describe('sankey tests', function() {
10861086

10871087
function _makeWrapper(eventType, mouseFn) {
10881088
var posByElementType = {
1089-
node: [404, 302],
1089+
node: [410, 300],
10901090
link: [450, 300]
10911091
};
10921092

0 commit comments

Comments
 (0)