| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <script> | |
| 4 | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.setCanOpenWindows(); | |
| 8 testRunner.waitUntilDone(); | |
| 9 } | |
| 10 | |
| 11 function log(message) | |
| 12 { | |
| 13 var console = document.getElementById("console"); | |
| 14 console.appendChild(document.createTextNode(message + "\n")); | |
| 15 } | |
| 16 | |
| 17 function loadPage() | |
| 18 { | |
| 19 var newwindow = window.open("resources/dice.png"); | |
| 20 newwindow.onload = function() { | |
| 21 if (window.eventSender) { | |
| 22 newwindow.document.write("This doesn't crash"); | |
| 23 log ("Test Success"); | |
| 24 testRunner.notifyDone(); | |
| 25 } else | |
| 26 newwindow.document.write("This doesn't crash"); | |
| 27 }; | |
| 28 } | |
| 29 </script> | |
| 30 <body onload="loadPage()"> | |
| 31 <p>This tests that writing on an "image page" doesn't asserts the tab. This test
requires testRunner to run. To test manually, open <a href="resources/dice.png
">this image</a> in a browser window, and write into the page using document.wri
te. It must not crash.</p> | |
| 32 <pre id="console"></pre> | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |