mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Make sure Placed Symbol test uses a strokeWidth on Paper too.
This commit is contained in:
parent
72a1ba8e70
commit
a7ec0ef269
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue