2 <p>Cancelling a document.write()-inserted and blocking script shouldn't fail.
</p>
3 <p>PASS if no crash.
</p>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.setCanOpenWindows();
8 testRunner
.waitUntilDone();
10 window
.open("resources/document-write-then-close.html");