mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing test for Path#fullySelected.
This commit is contained in:
parent
af5aa67c36
commit
9c88c00360
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
});
|
Loading…
Reference in a new issue