Add failing test for Path#fullySelected.

This commit is contained in:
Jonathan Puckey 2011-06-05 20:08:46 +02:00
parent af5aa67c36
commit 9c88c00360

View file

@ -122,3 +122,11 @@ test('Path#reverse', function() {
equals(path.segments.toString(), '{ point: { x: 100, y: 130 }, handleIn: { x: -16.56854, y: 0 }, handleOut: { x: 16.56854, y: 0 } },{ point: { x: 130, y: 100 }, handleIn: { x: 0, y: 16.56854 }, handleOut: { x: 0, y: -16.56854 } },{ point: { x: 100, y: 70 }, handleIn: { x: 16.56854, y: 0 }, handleOut: { x: -16.56854, y: 0 } },{ point: { x: 70, y: 100 }, handleIn: { x: 0, y: -16.56854 }, handleOut: { x: 0, y: 16.56854 } }');
});
test('Path#fullySelected', function() {
var path = new Path.Circle([100, 100], 10);
path.selected = true;
path.segments[1].selected = false;
equals(function() {
return path.fullySelected;
}, false);
});