mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -05:00
Fix Item#parent test.
This commit is contained in:
parent
581f99f345
commit
b63d468bf2
1 changed files with 2 additions and 1 deletions
|
@ -83,9 +83,10 @@ test('setting item.parent', function() {
|
|||
equals(function() {
|
||||
return path.parent === group;
|
||||
}, true, 'The parent of path was set to group');
|
||||
|
||||
equals(function() {
|
||||
return layer2.children.indexOf(path) === -1;
|
||||
}, false, 'The path is no longer a child of layer2');
|
||||
}, true, 'The path is no longer a child of layer2');
|
||||
|
||||
var path2 = new Path({
|
||||
parent: group
|
||||
|
|
Loading…
Reference in a new issue