mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Minor clean-up.
This commit is contained in:
parent
b1915fcb62
commit
ded73129ad
1 changed files with 2 additions and 2 deletions
|
@ -11,13 +11,13 @@ test('placedSymbol bounds', function() {
|
||||||
'Path initial bounds.');
|
'Path initial bounds.');
|
||||||
var symbol = new Symbol(path);
|
var symbol = new Symbol(path);
|
||||||
var placedSymbol = new PlacedSymbol(symbol);
|
var placedSymbol = new PlacedSymbol(symbol);
|
||||||
|
|
||||||
// These tests currently fail because we haven't implemented
|
// These tests currently fail because we haven't implemented
|
||||||
// Item#strokeBounds yet.
|
// Item#strokeBounds yet.
|
||||||
compareRectangles(placedSymbol.bounds,
|
compareRectangles(placedSymbol.bounds,
|
||||||
new Rectangle(-50.5, -50.5, 101, 101),
|
new Rectangle(-50.5, -50.5, 101, 101),
|
||||||
'PlacedSymbol initial bounds.');
|
'PlacedSymbol initial bounds.');
|
||||||
|
|
||||||
placedSymbol.scale(1, 0.5);
|
placedSymbol.scale(1, 0.5);
|
||||||
compareRectangles(placedSymbol.bounds,
|
compareRectangles(placedSymbol.bounds,
|
||||||
{ x: -50.5, y: -25.25, width: 101, height: 50.5 },
|
{ x: -50.5, y: -25.25, width: 101, height: 50.5 },
|
||||||
|
|
Loading…
Reference in a new issue