mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing test for changing Item#position#x.
This commit is contained in:
parent
add6379ec3
commit
08d387a5d4
1 changed files with 6 additions and 0 deletions
|
@ -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');
|
||||
});
|
Loading…
Reference in a new issue