open-after-close.html 552 B

12345678910111213141516
  1. <html>
  2. <script>
  3. var url = "resources/open-after-close-popup.html";
  4. function test() {
  5. var w = window.open(url, 'popup', "height=200, width=200, top=100, left=100");
  6. w.close();
  7. window.open(url, 'popup', "height=200, width=200, top=100, left=100");
  8. }
  9. </script>
  10. <body onload="test()">
  11. <p>This test checks for a regression against rdar://problem/3572585: window.open fails if name param = the name of a window just closed in same function.</p>
  12. <p>If the test passes, you will see a "PASS" message open in a new window.</p>
  13. <hr>
  14. </body>
  15. </html>