Fix issue in item bounds test.

Translating a Group does not change the bounds of its children.
This commit is contained in:
Jürg Lehni 2012-12-24 16:45:02 +01:00
parent 110cbbb73d
commit 347d02bfa1

View file

@ -57,5 +57,5 @@ test('path.bounds when contained in a transformed group', function() {
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');
compareRectangles(path.bounds, { x: 10, y: 10, width: 50, height: 50 }, 'path.bounds after group translation');
});