mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing test.
This commit is contained in:
parent
41feaebb4e
commit
e69395ced0
1 changed files with 15 additions and 0 deletions
|
@ -114,6 +114,21 @@ test('Is the path deselected after setting a new list of segments?', function()
|
|||
}, 0);
|
||||
});
|
||||
|
||||
test('After setting Path#selected=true on an empty path, subsequent segments should be selected', function() {
|
||||
var path = new Path();
|
||||
path.selected = true;
|
||||
equals(function() {
|
||||
return path.selected;
|
||||
}, true);
|
||||
path.add([10, 10]);
|
||||
equals(function() {
|
||||
return path.selected;
|
||||
}, true);
|
||||
equals(function() {
|
||||
return path.firstSegment.selected;
|
||||
}, true);
|
||||
});
|
||||
|
||||
test('Path#reverse', function() {
|
||||
var path = new Path.Circle([100, 100], 30);
|
||||
path.reverse();
|
||||
|
|
Loading…
Reference in a new issue