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