From 08d387a5d466e8721df7ef5a5983e67f834cba07 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 31 May 2011 01:46:49 +0200 Subject: [PATCH] Add failing test for changing Item#position#x. --- test/tests/Item.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tests/Item.js b/test/tests/Item.js index d944dabc..6cbb5e75 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -422,3 +422,9 @@ test('Renaming item', function() { return paper.project.activeLayer.children['test2'] == path; }, true); }); + +test('Changing item#position.x', function() { + var path = new Path.Circle(new Point(50, 50), 50); + path.position.x += 5; + equals(path.position.toString(), '{ x: 55, y: 50 }', 'path.position.x += 5'); +}); \ No newline at end of file