diff --git a/test/tests/Item_Bounds.js b/test/tests/Item_Bounds.js index 0ffefd99..f6953623 100644 --- a/test/tests/Item_Bounds.js +++ b/test/tests/Item_Bounds.js @@ -50,4 +50,12 @@ test('group.bounds when group contains empty group', function() { compareRectangles(group.bounds, { x: 75, y: 75, width: 100, height: 100 }, 'group.bounds without empty group'); group.addChild(new Group()); compareRectangles(group.bounds, { x: 75, y: 75, width: 100, height: 100 }, 'group.bounds with empty group'); +}); + +test('path.bounds when contained in a transformed group', function() { + var path = new Path([10, 10], [60, 60]); + var group = new Group([path]); + compareRectangles(path.bounds, { x: 10, y: 10, width: 50, height: 50 }, 'path.bounds before group translation'); + group.translate(100, 100); + compareRectangles(path.bounds, { x: 110, y: 110, width: 50, height: 50 }, 'path.bounds after group translation'); }); \ No newline at end of file