Clean up rectangle test.

This commit is contained in:
Jürg Lehni 2013-06-12 15:16:45 -07:00
parent 1394c36907
commit e6721cdbd6

View file

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