diff --git a/test/tests/Segment.js b/test/tests/Segment.js index 2c87ef98..b4124911 100644 --- a/test/tests/Segment.js +++ b/test/tests/Segment.js @@ -48,4 +48,14 @@ test('segment.remove()', function() { var path = new Path([10, 10], [5, 5], [10, 10]); path.segments[1].remove(); equals(path.segments.length, 2); +}); + +test('segment.selected', function() { + var doc = new Document(); + var path = new Path([10, 20], [50, 100]); + path.segments[0].point.selected = true; + equals(path.segments[0].point.selected, true); + + path.segments[0].point.selected = false; + equals(path.segments[0].point.selected, false); }); \ No newline at end of file