mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add one more Rectangle test.
This commit is contained in:
parent
1cb1da0b26
commit
7a30de4784
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ test('new Rectangle(new Point(10, 20), new Size(30, 40));', function() {
|
|||
equals(rect.toString(), '{ x: 10, y: 20, width: 30, height: 40 }');
|
||||
});
|
||||
|
||||
test('new Rectangle({ point: [10, 20], size: [30, 40] });', function() {
|
||||
var rect = new Rectangle({ point: [10, 20], size: [30, 40] });
|
||||
equals(rect.toString(), '{ x: 10, y: 20, width: 30, height: 40 }');
|
||||
});
|
||||
|
||||
test('new Rectangle({ point: new Point(10, 20), size: new Size(30, 40)});', function() {
|
||||
var rect = new Rectangle({ point: new Point(10, 20), size: new Size(30, 40)});
|
||||
equals(rect.toString(), '{ x: 10, y: 20, width: 30, height: 40 }');
|
||||
|
|
Loading…
Reference in a new issue