Skip to content

Commit 8ddb965

Browse files
committed
Modify zoom test values to match new wheel rate
1 parent e231233 commit 8ddb965

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jasmine/tests/cartesian_interact_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,21 +367,21 @@ describe('axis zoom/pan and main plot zoom', function() {
367367
mouseEvent('scroll', mainDragCoords.x, mainDragCoords.y, {deltaY: 20, element: mainDrag});
368368
})
369369
.then(delay(constants.REDRAWDELAY + 10))
370-
.then(checkRanges({xaxis: [-0.4428, 2], yaxis: [0, 2.4428]}, 'xy main scroll'))
370+
.then(checkRanges({xaxis: [-0.2103, 2], yaxis: [0, 2.2103]}, 'xy main scroll'))
371371
.then(function() {
372372
var ewDrag = getDragger('xy', 'ew');
373373
var ewDragCoords = getNodeCoords(ewDrag);
374374
mouseEvent('scroll', ewDragCoords.x - 50, ewDragCoords.y, {deltaY: -20, element: ewDrag});
375375
})
376376
.then(delay(constants.REDRAWDELAY + 10))
377-
.then(checkRanges({xaxis: [-0.3321, 1.6679], yaxis: [0, 2.4428]}, 'x scroll'))
377+
.then(checkRanges({xaxis: [-0.1578, 1.8422], yaxis: [0, 2.2103]}, 'x scroll'))
378378
.then(function() {
379379
var nsDrag = getDragger('xy', 'ns');
380380
var nsDragCoords = getNodeCoords(nsDrag);
381381
mouseEvent('scroll', nsDragCoords.x, nsDragCoords.y - 50, {deltaY: -20, element: nsDrag});
382382
})
383383
.then(delay(constants.REDRAWDELAY + 10))
384-
.then(checkRanges({xaxis: [-0.3321, 1.6679], yaxis: [0.3321, 2.3321]}, 'y scroll'))
384+
.then(checkRanges({xaxis: [-0.1578, 1.8422], yaxis: [0.1578, 2.1578]}, 'y scroll'))
385385
.catch(failTest)
386386
.then(done);
387387
});
@@ -420,15 +420,15 @@ describe('axis zoom/pan and main plot zoom', function() {
420420
mouseEvent('scroll', mainDragCoords.x, mainDragCoords.y, {deltaY: 20, element: mainDrag});
421421
})
422422
.then(delay(constants.REDRAWDELAY + 10))
423-
.then(checkRanges({xaxis: [-0.4428, 2], yaxis: [0, 2.4428], xaxis2: [-0.2214, 2.2214], yaxis2: [-0.2214, 2.2214]},
423+
.then(checkRanges({xaxis: [-0.2103, 2], yaxis: [0, 2.2103], xaxis2: [-0.1052, 2.1052], yaxis2: [-0.1052, 2.1052]},
424424
'scroll xy'))
425425
.then(function() {
426426
var ewDrag = getDragger('xy', 'ew');
427427
var ewDragCoords = getNodeCoords(ewDrag);
428428
mouseEvent('scroll', ewDragCoords.x - 50, ewDragCoords.y, {deltaY: -20, element: ewDrag});
429429
})
430430
.then(delay(constants.REDRAWDELAY + 10))
431-
.then(checkRanges({xaxis: [-0.3321, 1.6679], yaxis: [0.2214, 2.2214]}, 'scroll x'))
431+
.then(checkRanges({xaxis: [-0.1578, 1.8422], yaxis: [0.1052, 2.1052]}, 'scroll x'))
432432
.catch(failTest)
433433
.then(done);
434434
});

0 commit comments

Comments
 (0)