mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -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() {
|
equals(function() {
|
||||||
return path.parent === group;
|
return path.parent === group;
|
||||||
}, true, 'The parent of path was set to group');
|
}, true, 'The parent of path was set to group');
|
||||||
|
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return layer2.children.indexOf(path) === -1;
|
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({
|
var path2 = new Path({
|
||||||
parent: group
|
parent: group
|
||||||
|
|
Loading…
Reference in a new issue