From e6721cdbd63ce4877433bcc139861451c9f1b9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 12 Jun 2013 15:16:45 -0700 Subject: [PATCH] Clean up rectangle test. --- test/tests/Rectangle.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/tests/Rectangle.js b/test/tests/Rectangle.js index e93999d3..2f877742 100644 --- a/test/tests/Rectangle.js +++ b/test/tests/Rectangle.js @@ -256,13 +256,10 @@ test('new Rectangle(object)', function() { }, '{ x: 0, y: 0, width: 100, height: 200 }'); equals(function() { - var rect = new Rectangle({ + return new Rectangle({ topLeft: [100, 50], size: [100, 200] - }); - rect.topLeft = [100, 50]; - rect.size = [100, 200]; - return rect.toString(); + }).toString(); }, '{ x: 100, y: 50, width: 100, height: 200 }'); equals(function() {