Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / global-opener-function.html
blobf5616336088e868701b66be91760d24cb3cd68f7
1 <html>
2 <head>
3 <script>
4 function print(message) {
5 var paragraph = document.createElement("li");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
10 function opener() {
13 function test() {
14 if (window.testRunner) {
15 window.testRunner.dumpAsText();
18 var STATUS;
19 if (typeof(opener) == "function") {
20 STATUS = "success: function opener() declared";
21 } else {
22 STATUS = "failure: could not declare function opener()";
24 print(STATUS);
26 </script>
27 </head>
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>
31 <hr>
32 <ol id='console'/>
33 </body>
34 </html>