Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / text-font-uri-invalid.svg
blob8f270ad91edc415c9e6b1ba93b9665f0a42fdc9c
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 This test is to ensure that we do not crash when loading a SVG image with an invalid font-face-uri
4 <div id="log"><span style='color: red;'>FAIL:</span> Did not complete test</div>
5 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
6 <g>
7 <defs>
8 <font-face>
9 <font-face-src>
10 <font-face-uri xlink:href="http://1234123!%#$!%#$%"/>
11 </font-face-src>
12 </font-face>
13 </defs>
14 </g>
15 </svg>
16 <script>
17 if (window.testRunner)
18 testRunner.dumpAsText();
19 var log = document.getElementById("log");
20 while (log.childNodes.length)
21 log.removeChild(log.firstChild);
22 var msg = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
23 msg.style.color = "green";
24 msg.appendChild(document.createTextNode("PASS:"));
25 log.appendChild(msg);
26 log.appendChild(document.createTextNode(" Did not crash when rendering the SVG image."));
27 </script>
28 </body>
29 </html>