blob: 4fcf5d2390b68006629d3b3cd32b1bd0346c2aea [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<html>
2<script>
3 var url = "resources/open-after-close-popup.html";
4
5 function test() {
6 var w = window.open(url, 'popup', "height=200, width=200, top=100, left=100");
7 w.close();
8 window.open(url, 'popup', "height=200, width=200, top=100, left=100");
9 }
10</script>
11<body onload="test()">
12<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>
13<p>If the test passes, you will see a "PASS" message open in a new window.</p>
14<hr>
15</body>
16</html>