From 9c5c7997d484d9484b9b42f4b3a1d3f38245a81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 3 Mar 2013 15:07:15 -0800 Subject: [PATCH] Fix test for Rectangle({from:, to: }) constructor. --- test/tests/Rectangle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/Rectangle.js b/test/tests/Rectangle.js index aaf842a4..e5d8ce7e 100644 --- a/test/tests/Rectangle.js +++ b/test/tests/Rectangle.js @@ -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() {