| OLD | NEW | 
|   1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |   1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 
|   2 <html> |   2 <html> | 
|   3 <head> |   3 <head> | 
|   4 <script src="../js/resources/js-test-pre.js"></script> |   4 <script src="../js/resources/js-test-pre.js"></script> | 
|   5 </head> |   5 </head> | 
|   6 <body> |   6 <body> | 
|   7 <iframe id="aframe"></iframe> |   7 <iframe id="aframe"></iframe> | 
|   8 <script> |   8 <script> | 
|   9 description("Test that explicitly closing the document while it is already closi
    ng doesn't result in running the end twice."); |   9 description("Test that explicitly closing the document while it is already closi
    ng doesn't result in running the end twice."); | 
|  10  |  10  | 
|  11 var frameDocument = document.getElementById("aframe").contentDocument; |  11 var frameDocument = document.getElementById("aframe").contentDocument; | 
|  12 frameDocument.open(); |  12 frameDocument.open(); | 
|  13 frameDocument.onreadystatechange = function() |  13 frameDocument.onreadystatechange = function() | 
|  14 { |  14 { | 
|  15     debug(frameDocument.readyState); |  15     debug(frameDocument.readyState); | 
|  16     frameDocument.close(); |  16     frameDocument.close(); | 
|  17 }; |  17 }; | 
|  18 frameDocument.write("<script>document.close()</scr"+"ipt>"); |  18 frameDocument.write("<script>document.close()</scr"+"ipt>"); | 
|  19 </script> |  19 </script> | 
|  20 <script src="../js/resources/js-test-post.js"></script> |  | 
|  21 </body> |  20 </body> | 
|  22 </html> |  21 </html> | 
| OLD | NEW |