OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <div>Tests for a crash due to adopting a DOM node during DOMFocusOut event. Test
passes if it doesn't crash.</div> | 3 <div>Tests for a crash due to adopting a DOM node during DOMFocusOut event. Test
passes if it doesn't crash.</div> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 </script> | 9 </script> |
10 <div id="div1"></div> | 10 <div id="div1"></div> |
(...skipping 10 matching lines...) Expand all Loading... |
21 function doit() | 21 function doit() |
22 { | 22 { |
23 div2.addEventListener("DOMFocusOut", function () { document.implementation.c
reateDocument("", "", null).adoptNode(div2); }, false); | 23 div2.addEventListener("DOMFocusOut", function () { document.implementation.c
reateDocument("", "", null).adoptNode(div2); }, false); |
24 div1.outerHTML = header1.outerHTML; | 24 div1.outerHTML = header1.outerHTML; |
25 if (window.testRunner) | 25 if (window.testRunner) |
26 testRunner.notifyDone(); | 26 testRunner.notifyDone(); |
27 } | 27 } |
28 document.addEventListener("DOMContentLoaded", setTimeout("doit()", 1), false); | 28 document.addEventListener("DOMContentLoaded", setTimeout("doit()", 1), false); |
29 </script> | 29 </script> |
30 </html> | 30 </html> |
OLD | NEW |