Home | History | Annotate | Download | only in ManualTests
      1 <html>
      2 <body>
      3 <p>This test checks a window.close called in the midst of parsing a page.
      4    Click the buttons below to load the test pages.
      5 </p>
      6 <hr>
      7 <input type=button value="Run Test 1" onclick='window.open("resources/window-close-during-parsing-popup1.html")'>
      8 <p>If this test passes, you should see 'PASS: same script tag after close,'
      9    but nothing else. In particular, you should not see onload or onunload 
     10    fire.
     11 </p>
     12 <hr>
     13 <input type=button value="Run Test 2" onclick='window.open("resources/window-close-during-parsing-popup2.html")'>
     14 <p>If this test passes, you should see a window open and then close.
     15    If it fails, Safari will crash.
     16 </p>
     17 </body>
     18 </html>
     19