From 77292892ca7263026d9e04f6c09f36c7f961abd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 24 Apr 2013 18:55:00 -0700 Subject: [PATCH] Define failing test for #206. --- test/tests/Path_Bounds.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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