blob: 0cb17f54033f83f5be4cd9900e3730f84e4ec22c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<iframe id="aframe"></iframe>
<script>
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.open();
frameDocument.onreadystatechange = function()
{
debug(frameDocument.readyState);
frameDocument.close();
};
frameDocument.write("<script>document.close()</scr"+"ipt>");
var successfullyParsed = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>