Fix test for Rectangle({from:, to: }) constructor.

This commit is contained in:
Jürg Lehni 2013-03-03 15:07:15 -08:00
parent c9e337836a
commit 9c5c7997d4

View file

@ -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() {