From 9f7b4b7480dcde0c2b5139a5f7d0be62b8804460 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Fri, 17 Jun 2011 14:10:10 +0200 Subject: [PATCH] Add failing test: After selecting a segment, Path#selected should return true --- test/tests/Path.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/tests/Path.js b/test/tests/Path.js index 7316ca88..b2bb2cae 100644 --- a/test/tests/Path.js +++ b/test/tests/Path.js @@ -129,6 +129,15 @@ test('After setting Path#fullySelected=true on an empty path, subsequent segment }, true); }); +test('After selecting a segment, Path#selected should return true', function() { + var path = new Path(); + path.add([10, 10]); + path.firstSegment.selected = true; + equals(function() { + return path.selected; + }, true); +}); + test('Path#reverse', function() { var path = new Path.Circle([100, 100], 30); path.reverse();