chromium/third_party/blink/web_tests/fast/dom/Window/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.testRunner) {
		testRunner.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>