blob: 5582ab5c25dd2f014158d38032a7e85b2977d65c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<script>
jsTestIsAsync = true;
onload = function() {
if (window.opener)
console.log("FAIL: New window should not have an opener");
else
console.log("PASS: New window should not have an opener");
opener = open("", "opener"); // Should open a new window.
if (opener.location.href == "about:blank")
console.log("PASS: New window should have URL 'about:blank'");
else
console.log("FAIL: New window should have URL 'about:blank' but got '" + opener.location.href + "'");
finishJSTest();
};
</script>
</body>
</html>