OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 function destroyed() | 5 function destroyed() |
6 { | 6 { |
7 var target = document.getElementById("target"); | 7 var target = document.getElementById("target"); |
8 target.parentNode.removeChild(target); | 8 target.parentNode.removeChild(target); |
9 } | 9 } |
10 | 10 |
11 function loaded() | 11 function loaded() |
12 { | 12 { |
13 if (window.testRunner) { | 13 if (window.testRunner) { |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 testRunner.waitUntilDone(); | 15 testRunner.waitUntilDone(); |
16 } | 16 } |
17 | 17 |
18 document.body.offsetTop; | 18 document.body.offsetTop; |
19 location.href = "data:text/html,<head><scr" + "ipt>function loaded() { i
f (window.testRunner) testRunner.notifyDone(); }</scr" + "ipt></head><body onloa
d='loaded()'>Test for rdar://problem/6937089 PASSED.</body>"; | 19 location.href = "data:text/html,<head><scr" + "ipt>function loaded() { i
f (window.testRunner) testRunner.notifyDone(); }</scr" + "ipt></head><body onloa
d='loaded()'>Test for rdar://problem/6937089 PASSED.</body>"; |
20 } | 20 } |
21 </script> | 21 </script> |
22 <body onload="loaded()"> | 22 <body onload="loaded()"> |
23 <p> | 23 <p> |
24 Test for <i><a href="rdar://problem/6937089">rdar://problem/6937089</a> Cras
hes at RenderPart::destroy()</i>. | 24 Test for <i><a href="rdar://problem/6937089">rdar://problem/6937089</a> Cras
hes at LayoutPart::destroy()</i>. |
25 </p> | 25 </p> |
26 <p> | 26 <p> |
27 This test should not crash or cause an assertion failure. | 27 This test should not crash or cause an assertion failure. |
28 </p> | 28 </p> |
29 <div id="target"> | 29 <div id="target"> |
30 <embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> | 30 <embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> |
31 </div> | 31 </div> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |