Skip to content

Commit 4511b19

Browse files
committed
bump tolenrance in sankey suite
... to make test pass ok on etpinard's laptop running Chrome 70
1 parent 4ab4b41 commit 4511b19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/jasmine/tests/sankey_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,9 @@ describe('sankey tests', function() {
12741274
nodes = document.getElementsByClassName('sankey-node');
12751275
node = nodes.item(nodes.length - 1); // Dragged node is now the last one
12761276
var newPosition = getNodeCoords(node);
1277-
if(arrangement === 'freeform') expect(newPosition.x).toBeCloseTo(position.x + move[0], 2, 'final x position is off');
1277+
if(arrangement === 'freeform') {
1278+
expect(newPosition.x).toBeCloseTo(position.x + move[0], 0, 'final x position is off');
1279+
}
12781280
expect(newPosition.y).toBeCloseTo(position.y + move[1], 2, 'final y position is off');
12791281
return Promise.resolve(true);
12801282
});
@@ -1308,7 +1310,7 @@ describe('sankey tests', function() {
13081310
var node;
13091311
var x, x1;
13101312
var y, y1;
1311-
var precision = 3;
1313+
var precision = 2;
13121314

13131315
Plotly.newPlot(gd, mockCopy)
13141316
.then(function() {

0 commit comments

Comments
 (0)