From 164c08a972745acf4467d599192f61d1baf0ef97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 6 Mar 2011 15:11:18 +0000 Subject: [PATCH] Change tests to ignore Illustrator's faulty bounds calculation of symbols. --- test/tests/PlacedSymbol.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/PlacedSymbol.js b/test/tests/PlacedSymbol.js index d216afe4..5fdb20e7 100644 --- a/test/tests/PlacedSymbol.js +++ b/test/tests/PlacedSymbol.js @@ -7,7 +7,7 @@ test('placedSymbol bounds', function() { path.strokeCap = 'round'; path.strokeJoin = 'round'; compareRectangles(path.strokeBounds, - new Rectangle(-0.5, -0.5, 101, 101), + { x: -0.5, y: -0.5, width: 101, height: 101 }, 'Path initial bounds.'); var symbol = new Symbol(path); var placedSymbol = new PlacedSymbol(symbol); @@ -20,7 +20,7 @@ test('placedSymbol bounds', function() { placedSymbol.scale(0.5); compareRectangles(placedSymbol.bounds, - { x: -25.5, y: -25.5, width: 51, height: 51 }, + { x: -25.25, y: -25.25, width: 50.5, height: 50.5 }, 'Bounds after scale.'); placedSymbol.rotate(40);