merge: combine all features from both codebases - mobile dashboard + layer panel + notifications + shares + all fixes
This commit is contained in:
@@ -272,6 +272,21 @@ describe('SelectionEngine', () => {
|
||||
s.selectionEngine.cancelBoxSelect();
|
||||
expect(s.selectionEngine.isBoxSelecting()).toBe(false);
|
||||
});
|
||||
|
||||
it('hasBoxMoved should return false when box not started', () => {
|
||||
expect(s.selectionEngine.hasBoxMoved()).toBe(false);
|
||||
});
|
||||
|
||||
it('hasBoxMoved should return false when start equals end (no drag)', () => {
|
||||
s.selectionEngine.startBoxSelect(50, 50);
|
||||
expect(s.selectionEngine.hasBoxMoved()).toBe(false);
|
||||
});
|
||||
|
||||
it('hasBoxMoved should return true when box end differs from start', () => {
|
||||
s.selectionEngine.startBoxSelect(50, 50);
|
||||
s.selectionEngine.updateBoxSelect(100, 100, []);
|
||||
expect(s.selectionEngine.hasBoxMoved()).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('clearSelection', () => {
|
||||
|
||||
Reference in New Issue
Block a user