Skip to content

Commit cf48426

Browse files
committed
update gl2d autorange test for converged autorange calculation
1 parent 8cf8d51 commit cf48426

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/gl2d_plot_interact_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ describe('Test scattergl autorange:', function() {
907907
marker: {size: 10}
908908
}])
909909
.then(function() {
910-
expect(gd._fullLayout.xaxis.range).toBeCloseToArray([-0.02, 1.02], 'x range');
911-
expect(gd._fullLayout.yaxis.range).toBeCloseToArray([-0.04, 1.04], 'y range');
910+
expect(gd._fullLayout.xaxis.range).toBeCloseToArray([-0.079, 1.079], 2, 'x range');
911+
expect(gd._fullLayout.yaxis.range).toBeCloseToArray([-0.105, 1.105], 2, 'y range');
912912
})
913913
.catch(fail)
914914
.then(done);
@@ -925,8 +925,8 @@ describe('Test scattergl autorange:', function() {
925925
marker: {size: ms}
926926
}])
927927
.then(function() {
928-
expect(gd._fullLayout.xaxis.range).toBeCloseToArray([-0.05, 1.05], 'x range');
929-
expect(gd._fullLayout.yaxis.range).toBeCloseToArray([-0.11, 1.11], 'y range');
928+
expect(gd._fullLayout.xaxis.range).toBeCloseToArray([-0.119, 1.119], 2, 'x range');
929+
expect(gd._fullLayout.yaxis.range).toBeCloseToArray([-0.199, 1.199], 2, 'y range');
930930
})
931931
.catch(fail)
932932
.then(done);

0 commit comments

Comments
 (0)