--- /dev/null
+This test checks to ensure that you can declare a global function called "opener" to shadow window.opener.
+
+If the test passes, you will see 1 "success" message below. Otherwise, you will see 1 "failure" message.
+
+success: function opener() declared
--- /dev/null
+<html>
+<head>
+<script>
+function print(message) {
+ var paragraph = document.createElement("li");
+ paragraph.appendChild(document.createTextNode(message));
+ document.getElementById("console").appendChild(paragraph);
+}
+
+function opener() {
+}
+
+function test() {
+ if (window.layoutTestController) {
+ window.layoutTestController.dumpAsText();
+ }
+
+ var STATUS;
+ if (typeof(opener) == "function") {
+ STATUS = "success: function opener() declared";
+ } else {
+ STATUS = "failure: could not declare function opener()";
+ }
+ print(STATUS);
+}
+</script>
+</head>
+<body onload="test();">
+<p>This test checks to ensure that you can declare a global function called "opener" to shadow window.opener.</p>
+<p>If the test passes, you will see 1 "success" message below. Otherwise, you will see 1 "failure" message.</p>
+<hr>
+<ol id='console'/>
+</body>
+</html>
+2005-06-21 Geoffrey Garen <ggaren@apple.com>
+
+ - fixed <rdar://problem/4155049> javascript function named as "opener" doesn't get called because of window.opener property
+
+ Test cases only, fix is in JavaScriptCore
+
+ Reviewed by cblu.
+
+ Test cases added:
+
+ * layout-tests/fast/js/global-opener-function-expected.txt: Added.
+ * layout-tests/fast/js/global-opener-function.html: Added.
+
2005-06-21 David Harrison <harrison@apple.com>
Reviewed by Justin.