3 <body onload=
"loaded()">
5 <title>This test used to be laid out on a single line, instead of multiple ones
</title>
6 <text id=
"text" y=
"50"></text>
9 var text
= document
.getElementsByTagName("text")[0];
12 var tspan1
= document
.createElementNS("http://www.w3.org/2000/svg", "tspan");
13 tspan1
.appendChild(document
.createTextNode("Should be on"));
15 tspan2
= document
.createElementNS("http://www.w3.org/2000/svg", "tspan");
16 tspan2
.appendChild(document
.createTextNode("different lines"));
18 text
.appendChild(tspan1
);
19 text
.appendChild(tspan2
);
21 // Bug is only trigger from another loop.
22 setTimeout(moveSpan
, 0);
26 tspan2
.setAttribute("dy", "30");
28 if (window
.testRunner
)
29 testRunner
.notifyDone();
32 if (window
.testRunner
)
33 testRunner
.waitUntilDone();
36 // Bug is only trigger from another loop.
37 setTimeout(addSpans
, 0);