summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/close-on-closedWindow.html
blob: 9e30715094917f0150c9ca2167981d485aeaf3f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
</head>
<body>
<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>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
<ol>
    <li>Click the link below </li>
    <li>Close the window that opens </li>
    <li>Click the link again </li>
</ol>
</p>

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
If the bug is fixed, a window WILL OPEN after Step #3.
</p>

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
If the bug is not fixed, a window WILL NOT OPEN after Step #3.
</p>

<script language="JavaScript">
win = null;
function win_open() {

    if (win != null) {
        win.close();
    }
    win = window.open('about:blank');
}
</script>

 <a href="javascript:win_open();">Click this link</a>

</body>
</html>