Add more selection manager/model tests

This commit is contained in:
Daniel Imms
2017-06-07 14:37:09 -07:00
parent b81c165bea
commit a047359f81
3 changed files with 21 additions and 1 deletions
+4
View File
@@ -106,6 +106,10 @@ 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;