Skip to content

Commit 164c08a

Browse files
committed
Change tests to ignore Illustrator's faulty bounds calculation of symbols.
1 parent 6735218 commit 164c08a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/tests/PlacedSymbol.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test('placedSymbol bounds', function() {
77
path.strokeCap = 'round';
88
path.strokeJoin = 'round';
99
compareRectangles(path.strokeBounds,
10-
new Rectangle(-0.5, -0.5, 101, 101),
10+
{ x: -0.5, y: -0.5, width: 101, height: 101 },
1111
'Path initial bounds.');
1212
var symbol = new Symbol(path);
1313
var placedSymbol = new PlacedSymbol(symbol);
@@ -20,7 +20,7 @@ test('placedSymbol bounds', function() {
2020

2121
placedSymbol.scale(0.5);
2222
compareRectangles(placedSymbol.bounds,
23-
{ x: -25.5, y: -25.5, width: 51, height: 51 },
23+
{ x: -25.25, y: -25.25, width: 50.5, height: 50.5 },
2424
'Bounds after scale.');
2525

2626
placedSymbol.rotate(40);

0 commit comments

Comments
 (0)