Add failing path selection test.

This commit is contained in:
Jonathan Puckey 2011-04-22 11:52:24 +02:00
parent 2496f08b17
commit 578269d0c1

View file

@ -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);
});