Add failing test: After selecting a segment, Path#selected should return true

This commit is contained in:
Jonathan Puckey 2011-06-17 14:10:10 +02:00
parent 822cf17989
commit 9f7b4b7480

View file

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