mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing path selection test.
This commit is contained in:
parent
2496f08b17
commit
578269d0c1
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ test('Is the path deselected after setting a new list of segments?', function()
|
|||
var path = new Path([0, 0]);
|
||||
path.selected = true;
|
||||
equals(path.selected, true);
|
||||
equals(doc.selectedItems.length, 1);
|
||||
|
||||
path.segments = [[0, 10]];
|
||||
equals(path.selected, false);
|
||||
equals(doc.selectedItems.length, 0);
|
||||
});
|
Loading…
Reference in a new issue