From 578269d0c1fd19b158a9f793704e9e3288452420 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Fri, 22 Apr 2011 11:52:24 +0200 Subject: [PATCH] Add failing path selection test. --- test/tests/Path.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/tests/Path.js b/test/tests/Path.js index 61584d25..6fe0e4ac 100644 --- a/test/tests/Path.js +++ b/test/tests/Path.js @@ -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); }); \ No newline at end of file