mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add test for symbol definition modification.
This commit is contained in:
parent
1ed6d46ce3
commit
3b5e00f343
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue