mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -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 }');
|
}, '{ x: 0, y: 0, width: 100, height: 200 }');
|
||||||
|
|
||||||
equals(function() {
|
equals(function() {
|
||||||
var rect = new Rectangle({
|
return new Rectangle({
|
||||||
topLeft: [100, 50],
|
topLeft: [100, 50],
|
||||||
size: [100, 200]
|
size: [100, 200]
|
||||||
});
|
}).toString();
|
||||||
rect.topLeft = [100, 50];
|
|
||||||
rect.size = [100, 200];
|
|
||||||
return rect.toString();
|
|
||||||
}, '{ x: 100, y: 50, width: 100, height: 200 }');
|
}, '{ x: 100, y: 50, width: 100, height: 200 }');
|
||||||
|
|
||||||
equals(function() {
|
equals(function() {
|
||||||
|
|
Loading…
Reference in a new issue