Skip to content

Commit dc770e2

Browse files
committed
make drag values work in all window size:
- large drag values resulted in failed tests in small window sizes
1 parent 8601385 commit dc770e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/jasmine/tests/click_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ describe('Test click interactions:', function() {
212212
expect(gd.layout.xaxis.range).toBeCloseToArray(autoRangeX);
213213
expect(gd.layout.yaxis.range).toBeCloseToArray(autoRangeY);
214214

215-
return drag(100, 100, 200, 200);
215+
return drag(50, 50, 100, 100);
216216
}).then(function() {
217-
expect(gd.layout.xaxis.range).toBeCloseToArray([-2.70624901567643, -1.9783478816352495]);
218-
expect(gd.layout.yaxis.range).toBeCloseToArray([0.5007032802920716, 1.2941670624404753]);
217+
expect(gd.layout.xaxis.range).toBeCloseToArray([-3.0119674, 2.156130559]);
218+
expect(gd.layout.yaxis.range).toBeCloseToArray([-0.9910086, 1.389382716]);
219219

220220
done();
221221
});

0 commit comments

Comments
 (0)