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