From 55a795c2856038a93d4087a27ec5c819dfd4b8b4 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 1 Mar 2012 16:39:00 +0100 Subject: [PATCH] Add failing tests for renaming a removed item and naming a top level group. --- test/tests/Item.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/tests/Item.js b/test/tests/Item.js index c8b31a53..8fc83900 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -464,6 +464,17 @@ test('Changing item#position.x', function() { equals(path.position.toString(), '{ x: 55, y: 50 }', 'path.position.x += 5'); }); +test('Naming a removed item', function() { + var path = new Path(); + path.remove(); + path.name = 'test'; +}); + +test('Naming a layer', function() { + var layer = new Layer(); + layer.name = 'test'; +}); + test('Cloning a linked size', function() { var path = new Path([40, 75], [140, 75]); var error = null;