Fix issue 1053: tspans now get remapped when their text parent are translated

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2460 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2013-02-22 15:46:11 +00:00
parent 355492050c
commit 230479e038
3 changed files with 22 additions and 18 deletions

View File

@@ -117,9 +117,8 @@
tearDown();
});
test('Test recalculateDimensions() on text w/tspan with simple translate', function() {
expect(3);
expect(5);
setUpTextWithTspan();
elem.setAttribute('transform', 'translate(100,50)');
@@ -132,9 +131,9 @@
equal('300', elem.getAttribute('x'));
equal('200', elem.getAttribute('y'));
// var tspan = elem.firstElementChild;
// equal('300', tspan.getAttribute('x'));
// equal('200', tspan.getAttribute('y'));
var tspan = elem.firstElementChild;
equal('300', tspan.getAttribute('x'));
equal('200', tspan.getAttribute('y'));
tearDown();
});