Add one more Rectangle test.

This commit is contained in:
Jürg Lehni 2013-03-03 15:23:58 -08:00
parent 1cb1da0b26
commit 7a30de4784

View file

@ -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 }');