3 This test is to ensure that we do not crash when attempting to determine the dimension properties of an SVG text element with no renderer.
4 <div id=
"log"><span style='color: red;'
>FAIL:
</span> Did not complete test
</div>
7 testRunner
.dumpAsText();
8 var svgns
= "http://www.w3.org/2000/svg";
9 var svg
= document
.createElementNS(svgns
, "svg");
10 svg
.setAttribute("style", "width:100px;height:100px;display:none;");
11 var text
= document
.createElementNS(svgns
, "text");
12 var textContent
= document
.createTextNode("text");
13 text
.getNumberOfChars();
14 text
.getComputedTextLength();
15 text
.appendChild(textContent
);
16 text
.getNumberOfChars();
17 text
.getComputedTextLength();
18 svg
.appendChild(text
);
19 text
.getNumberOfChars();
20 text
.getComputedTextLength();
21 document
.body
.appendChild(svg
);
22 text
.getNumberOfChars();
23 text
.getComputedTextLength();
24 document
.getElementById("log").innerHTML
= "<span style='color: green;'>PASS:</span> Did not crash when attempting to access SVG text dimensions.";