4 function print(message
) {
5 var paragraph
= document
.createElement("li");
6 paragraph
.appendChild(document
.createTextNode(message
));
7 document
.getElementById("console").appendChild(paragraph
);
14 if (window
.testRunner
) {
15 window
.testRunner
.dumpAsText();
19 if (typeof(opener
) == "function") {
20 STATUS
= "success: function opener() declared";
22 STATUS
= "failure: could not declare function opener()";
28 <body onload=
"test();">
29 <p>This test checks to ensure that you can declare a global function called
"opener" to shadow window.opener.
</p>
30 <p>If the test passes, you will see
1 "success" message below. Otherwise, you will see
1 "failure" message.
</p>