From 441dc3641d90e3c81042705b69b55d0ba917b745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 15 May 2011 18:53:22 +0100 Subject: [PATCH] Add additional test for #name. --- test/tests/Item.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/tests/Item.js b/test/tests/Item.js index f0d2f4a5..92240671 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -387,10 +387,14 @@ test('Named child access 2', function() { test('Setting name of child back to null', function() { var path = new Path(); path.name = 'test'; - + var path2 = new Path(); path2.name = 'test'; - + + equals(function() { + return paper.document.activeLayer.children['test'] == path2; + }, true); + path2.name = null; equals(function() {