Make sure Placed Symbol test uses a strokeWidth on Paper too.

This commit is contained in:
Jürg Lehni 2011-03-06 10:58:05 +00:00
parent 72a1ba8e70
commit a7ec0ef269

View file

@ -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);