| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../js/resources/js-test-pre.js"></script> |
| <iframe id="aframe"></iframe> |
| description("Test that explicitly closing the document while it is already closing doesn't result in running the end twice."); |
| var frameDocument = document.getElementById("aframe").contentDocument; |
| frameDocument.onreadystatechange = function() |
| debug(frameDocument.readyState); |
| frameDocument.write("<script>document.close()</scr"+"ipt>"); |
| <script src="../js/resources/js-test-post.js"></script> |