From b63d468bf210f670948347ebf7beb4903dacc3c5 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 10 Mar 2013 17:25:25 +0100 Subject: [PATCH] Fix Item#parent test. --- test/tests/Item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tests/Item.js b/test/tests/Item.js index ebd2cb48..b9bca0cc 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -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