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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user