Add test for symbol definition modification.

This commit is contained in:
Jürg Lehni 2011-07-04 21:23:40 +02:00
parent 1ed6d46ce3
commit 3b5e00f343

View file

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