summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/close-on-closedWindow.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/close-on-closedWindow.html')
-rw-r--r--WebCore/manual-tests/close-on-closedWindow.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/WebCore/manual-tests/close-on-closedWindow.html b/WebCore/manual-tests/close-on-closedWindow.html
new file mode 100644
index 0000000..9e30715
--- /dev/null
+++ b/WebCore/manual-tests/close-on-closedWindow.html
@@ -0,0 +1,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>