diff --git a/test/tests/Path_Bounds.js b/test/tests/Path_Bounds.js index 4e389932..bec2d1ba 100644 --- a/test/tests/Path_Bounds.js +++ b/test/tests/Path_Bounds.js @@ -187,4 +187,12 @@ test('path.bounds & path.strokeBounds with stroke styles', function() { compareRectangles(path.strokeBounds, { x: 484.01325, y: 301.78419, width: 143.50622, height: 133.64882 }, 'round/miter path.strokeBounds'); +}); + +test('path.strokeBounds with rectangles', function() { + var path = new paper.Path.Rectangle([100, 100], [100, 100]); + path.strokeWidth = 50; + compareRectangles(path.strokeBounds, + { x: 50, y: 50, width: 200, height: 200 }, + 'path.strokeBounds'); }); \ No newline at end of file