Fix bug when selection end is less than start

This commit is contained in:
Daniel Imms
2017-06-07 19:17:38 -07:00
parent d56a611a19
commit e88a9ffd89
3 changed files with 0 additions and 18 deletions
-4
View File
@@ -106,10 +106,6 @@ describe('SelectionManager', () => {
model.selectionEnd = [1, 2];
assert.equal(model.finalSelectionEnd, null);
});
it('should return null if there is no selection end or selection start length', () => {
model.selectionStart = [1, 2];
assert.equal(model.finalSelectionEnd, null);
});
it('should return selection start + length if there is no selection end', () => {
model.selectionStart = [2, 2];
model.selectionStartLength = 2;