Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / close-on-closedWindow.html
blob9e30715094917f0150c9ca2167981d485aeaf3f6
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en">
4 <head>
5 </head>
6 <body>
7 <p><b>BUG ID:</b> <a href="rdar://problem/4094363">rdar://problem/4094363</a> Can't re-open a window at capripalace.com website because "close" fails on already-closed window</p>
9 <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b>
10 <ol>
11 <li>Click the link below </li>
12 <li>Close the window that opens </li>
13 <li>Click the link again </li>
14 </ol>
15 </p>
17 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
18 If the bug is fixed, a window WILL OPEN after Step #3.
19 </p>
21 <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
22 If the bug is not fixed, a window WILL NOT OPEN after Step #3.
23 </p>
25 <script language="JavaScript">
26 win = null;
27 function win_open() {
29 if (win != null) {
30 win.close();
32 win = window.open('about:blank');
34 </script>
36 <a href="javascript:win_open();">Click this link</a>
38 </body>
39 </html>