From a7ec0ef269874b3cf84aea74ed66bc0f64fdb703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 6 Mar 2011 10:58:05 +0000 Subject: [PATCH] Make sure Placed Symbol test uses a strokeWidth on Paper too. --- test/tests/PlacedSymbol.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tests/PlacedSymbol.js b/test/tests/PlacedSymbol.js index aefcd5f3..d216afe4 100644 --- a/test/tests/PlacedSymbol.js +++ b/test/tests/PlacedSymbol.js @@ -3,6 +3,12 @@ module('Placed Symbol'); test('placedSymbol bounds', function() { var doc = new Document(); var path = new Path.Circle([50, 50], 50); + path.strokeWidth = 1; + path.strokeCap = 'round'; + path.strokeJoin = 'round'; + compareRectangles(path.strokeBounds, + new Rectangle(-0.5, -0.5, 101, 101), + 'Path initial bounds.'); var symbol = new Symbol(path); var placedSymbol = new PlacedSymbol(symbol);