5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.setCanOpenWindows();
8 testRunner
.waitUntilDone();
13 var console
= document
.getElementById("console");
14 console
.appendChild(document
.createTextNode(message
+ "\n"));
19 var newwindow
= window
.open("resources/dice.png");
20 newwindow
.onload = function() {
21 if (window
.eventSender
) {
22 newwindow
.document
.write("This doesn't crash");
24 testRunner
.notifyDone();
26 newwindow
.document
.write("This doesn't crash");
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.write. It must not crash.
</p>
32 <pre id=
"console"></pre>