From 3b5e00f343ab03bb4fad755b73da7c0fe5381262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 4 Jul 2011 21:23:40 +0200 Subject: [PATCH] Add test for symbol definition modification. --- test/tests/PlacedSymbol.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests/PlacedSymbol.js b/test/tests/PlacedSymbol.js index 39e86b16..d4bc6c9c 100644 --- a/test/tests/PlacedSymbol.js +++ b/test/tests/PlacedSymbol.js @@ -90,6 +90,10 @@ test('Changing the definition of a symbol should change the bounds of all instan compareRectangles(instance.bounds, { x: -20, y: -20, width: 40, height: 40 }, 'Bounds after changing symbol definition'); + symbol.definition.scale(0.5, 0.5); + compareRectangles(instance.bounds, + { x: -10, y: -10, width: 20, height: 20 }, + 'Bounds after modifying symbol definition'); }); test('Symbol definition selection', function() {