Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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
  • Loading branch information
etpinard committed Sep 13, 2019
commit 61b88e95356ba53f91855a57d04abd9b9a7a2276
14 changes: 10 additions & 4 deletions test/jasmine/tests/select_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,23 @@ describe('Click-to-select', function() {
assertSelectedPoints([7, 35]);
return _clickPt(mock14Pts[7], { shiftKey: true });
})
.then(function() {
assertSelectedPoints(35);
drag(LASSO_PATH);
})
.then(function() {
assertSelectedPoints(35);
_clickPt(mock14Pts[35], { shiftKey: true });
return deselectPromise;
})
.then(function() {
assertSelectionCleared();
return _clickPt(mock14Pts[7], { shiftKey: true });
})
.then(function() {
assertSelectedPoints(7);
drag([[110, 100], [300, 300]]);
})
.then(delay(100))
.then(function() {
// persist after zoombox
assertSelectedPoints(7);
})
.catch(failTest)
.then(done);
Expand Down