blob: b3b59ba30cd4eadb76345c8dde901f8c2c49d241 [file] [log] [blame]
if (window.testRunner) {
testRunner.setCanOpenWindows(true);
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
if (document.location.hash === "#new-window") {
if (window.opener)
console.log("FAIL: window.opener is non-null");
else
console.log("PASS: window.opener is null");
testRunner.notifyDone();
} else {
window.name = "originalWindow";
document.getElementById("link").click();
}