Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / image-with-attr-change-after-delete-crash.html
blob45abbf6d27e8e7ebe51dd3c8deaeb04475602e45
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <body id="body">
4 <svg id="svgRoot" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
5 <image height="410" id="svgImage" width="503" x="0" y="0" xlink:href="resources/green-checker.png"/>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 function forceGC() {
13 if (window.GCController)
14 GCController.collect();
15 else
16 gc();
19 svgImage = document.getElementById("svgImage");
20 docElement = document.getElementById("svgRoot");
21 newTextNode = document.createTextNode("\x7f Test Passes");
22 setTimeout("crash()", 0);
24 function crash() {
25 svgImage.attributes[5].value = "no-image";
26 svgImage.parentNode.removeChild(svgImage);
27 delete svgImage;
28 forceGC();
29 docElement.appendChild(newTextNode);
30 if (window.testRunner) {
31 document.getElementById("body").innerHTML = "Test Passes when there is no crash";
32 testRunner.notifyDone();
35 </script>
36 </svg>
37 </body>
38 </html>