Skip to content

Commit

Permalink
fixup! fixup! bugfix: first multiselection has no _lastSelectedIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
frykten committed Nov 21, 2019
1 parent 9ad9c75 commit 0e52567
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/components/selection-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module('Integration | selection', () => {

assert.ok(table.validateSelected(), 'rows are not selected');

await table.selectRange(3, 5);
await table.selectRangeFromClick(3, 5);

assert.ok(table.validateSelected(3, 4, 5), 'rows are selected');
});
Expand All @@ -154,7 +154,7 @@ module('Integration | selection', () => {

assert.ok(table.validateSelected(4), 'middle row selected');

await table.selectRange(3, 5);
await table.selectRangeFromClick(3, 5);

assert.ok(table.validateSelected(3, 4, 5), 'all rows are selected');
});
Expand Down Expand Up @@ -298,7 +298,7 @@ module('Integration | selection', () => {

assert.ok(table.validateSelected(), 'no rows are not selected');

await table.selectRange(0, 3);
await table.selectRangeFromClick(0, 3);

assert.ok(table.validateSelected(3), 'last row only is selected');
});
Expand Down Expand Up @@ -483,7 +483,7 @@ module('Integration | selection', () => {

assert.ok(table.validateSelected(), 'rows are not selected');

await table.selectRange(1, 3);
await table.selectRangeFromClick(1, 3);

assert.ok(table.validateSelected(0, 1, 2, 3), 'row and its children are selected');
});
Expand All @@ -497,7 +497,7 @@ module('Integration | selection', () => {

assert.ok(table.validateSelected(), 'rows are not selected');

await table.selectRange(1, 3);
await table.selectRangeFromClick(1, 3);

assert.ok(table.validateSelected(1, 2, 3), 'only children are selected');
});
Expand Down

0 comments on commit 0e52567

Please sign in to comment.