Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / styled-clone-inline-style-decl-parent-crash.html
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4 <script src="../js/resources/js-test-pre.js"></script>\r
5 </head>\r
6 <body>\r
7 Test passes if it does not crash.\r
8 <div id="console"></div>\r
9 <script>\r
10 if (window.testRunner)\r
11     testRunner.dumpAsText();\r
12 \r
13 iframe1 = document.createElement('iframe');\r
14 document.body.appendChild(iframe1);\r
15 document1 = iframe1.contentDocument.implementation.createHTMLDocument("document");\r
16 var div1 = document1.createElement('div');\r
17 document1.body.appendChild(div1);\r
18 div1.style.color = "blue";\r
19 var div2 = div1.cloneNode(true);\r
20 document1.body.removeChild(div1);\r
21 delete document1;\r
22 gc();\r
23 div2.style.color = "red";\r
24 \r
25 </script>\r
26 <script src="../js/resources/js-test-post.js"></script>\r
27 </body>\r
28 </html>\r