Fixing label rendering for repetition
Rendering a text element with a string leads to just a <text/> element. Rendering with an array leads to <text><tspan/></text>. Decided to use the latter since it matches with the majority of text rendering currently in use.
This commit is contained in:
@@ -163,7 +163,7 @@ describe('parser/javascript/match_fragment.js', function() {
|
||||
|
||||
it('renders a text element', function() {
|
||||
this.node.loopLabel();
|
||||
expect(this.node.container.text).toHaveBeenCalledWith(0, 0, 'example label');
|
||||
expect(this.node.container.text).toHaveBeenCalledWith(0, 0, ['example label']);
|
||||
});
|
||||
|
||||
describe('when there is a skip loop', function() {
|
||||
|
||||
Reference in New Issue
Block a user