Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / text-property-with-display-none.html
blob5b169aa4ff15efcc484c32946f72b8b5c9afb173
1 <html>
2 <body>
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>
5 <script>
6 if (window.testRunner)
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.";
25 </script>
26 </body>
27 </html>