Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / close-while-stopping.html
blob1239e922c0b6401303206790ec9d3ac6d0f772d1
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <iframe id="aframe"></iframe>
8 <script>
9 description("Test that explicitly closing the document while it is already closing doesn't result in running the end twice.");
11 var frameDocument = document.getElementById("aframe").contentDocument;
12 frameDocument.open();
13 frameDocument.onreadystatechange = function()
15 debug(frameDocument.readyState);
16 frameDocument.close();
18 frameDocument.write("<script>document.close()</scr"+"ipt>");
19 </script>
20 </body>
21 </html>