[webkit-changes] cvs commit: WebCore/layout-tests/fast/js
global-opener-function-expected.txt global-opener-function.html
Geoffrey
ggaren at opensource.apple.com
Tue Jun 21 11:44:59 PDT 2005
ggaren 05/06/21 11:44:58
Modified: . ChangeLog
Added: layout-tests/fast/js global-opener-function-expected.txt
global-opener-function.html
Log:
- 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.
Revision Changes Path
1.4291 +13 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.4290
retrieving revision 1.4291
diff -u -r1.4290 -r1.4291
--- ChangeLog 21 Jun 2005 18:11:07 -0000 1.4290
+++ ChangeLog 21 Jun 2005 18:44:55 -0000 1.4291
@@ -1,3 +1,16 @@
+2005-06-21 Geoffrey Garen <ggaren at 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 at apple.com>
Reviewed by Justin.
1.1 WebCore/layout-tests/fast/js/global-opener-function-expected.txt
Index: global-opener-function-expected.txt
===================================================================
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
1.1 WebCore/layout-tests/fast/js/global-opener-function.html
Index: global-opener-function.html
===================================================================
<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>
More information about the webkit-changes
mailing list