1 <p>This test checks for a NULL document crash that can happen when calling
2 location.replace. If the test passes, you'll see a PASS message below.
</p>
5 <iframe style=
"display:none" src=
"does-not-exist.bogus"></iframe> <!-- forces asynchronous load -->
10 document
.getElementById("pre").appendChild(document
.createTextNode(s
));
15 frames
[0].location
.replace("javascript:'<script>parent.pass()</script>'");
20 log("PASS: You didn't crash.");
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
28 if (window
.testRunner
) {
29 testRunner
.dumpAsText();
30 testRunner
.waitUntilDone();
33 // setTimeout forces execution in the context of the frame
34 frames
[0].setTimeout(test
, 0);