mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix test for Rectangle({from:, to: }) constructor.
This commit is contained in:
parent
c9e337836a
commit
9c5c7997d4
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ test('new Rectangle([10, 20], [30, 40]);', function() {
|
|||
|
||||
test('new Rectangle({from: [10, 20], to: [30, 40]});', function() {
|
||||
var rect = new Rectangle({from: [10, 20], to: [30, 40]});
|
||||
equals(rect.toString(), '{ x: 10, y: 20, width: 30, height: 40 }');
|
||||
equals(rect.toString(), '{ x: 10, y: 20, width: 20, height: 20 }');
|
||||
});
|
||||
|
||||
test('new Rectangle(new Point(10, 20), new Point(30, 40));', function() {
|
||||
|
|
Loading…
Reference in a new issue