Skip to content

Commit 61b88e9

Browse files
committed
fixup click-to-select in dragmode:'zoom' test
- that drag(LASSO_PATH) call used to lead a no zoom, so this test did not properly check for seletedpoints persistence after zoom
1 parent 1c12dba commit 61b88e9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/jasmine/tests/select_test.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,23 @@ describe('Click-to-select', function() {
437437
assertSelectedPoints([7, 35]);
438438
return _clickPt(mock14Pts[7], { shiftKey: true });
439439
})
440-
.then(function() {
441-
assertSelectedPoints(35);
442-
drag(LASSO_PATH);
443-
})
444440
.then(function() {
445441
assertSelectedPoints(35);
446442
_clickPt(mock14Pts[35], { shiftKey: true });
447443
return deselectPromise;
448444
})
449445
.then(function() {
450446
assertSelectionCleared();
447+
return _clickPt(mock14Pts[7], { shiftKey: true });
448+
})
449+
.then(function() {
450+
assertSelectedPoints(7);
451+
drag([[110, 100], [300, 300]]);
452+
})
453+
.then(delay(100))
454+
.then(function() {
455+
// persist after zoombox
456+
assertSelectedPoints(7);
451457
})
452458
.catch(failTest)
453459
.then(done);

0 commit comments

Comments
 (0)