mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Clean up rectangle test.
This commit is contained in:
parent
1394c36907
commit
e6721cdbd6
1 changed files with 2 additions and 5 deletions
|
@ -256,13 +256,10 @@ test('new Rectangle(object)', function() {
|
|||
}, '{ x: 0, y: 0, width: 100, height: 200 }');
|
||||
|
||||
equals(function() {
|
||||
var rect = new Rectangle({
|
||||
return new Rectangle({
|
||||
topLeft: [100, 50],
|
||||
size: [100, 200]
|
||||
});
|
||||
rect.topLeft = [100, 50];
|
||||
rect.size = [100, 200];
|
||||
return rect.toString();
|
||||
}).toString();
|
||||
}, '{ x: 100, y: 50, width: 100, height: 200 }');
|
||||
|
||||
equals(function() {
|
||||
|
|
Loading…
Reference in a new issue