Add failing test for changing Item#position#x.

This commit is contained in:
Jonathan Puckey 2011-05-31 01:46:49 +02:00
parent add6379ec3
commit 08d387a5d4

View file

@ -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');
});