<!DOCTYPE html> | |
<html> | |
<body> | |
<div id="console"></div> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.evaluateScriptInIsolatedWorld( | |
1, | |
"window.open = function() { alert('FAIL: document.open must not invoke window.open, document.open must open a new window with only internal implementation.');};\n" + | |
"w = document.open(1, 1, 1);\n" + | |
"if (typeof(w) === 'object')\n" + | |
"alert('PASS');"); | |
} | |
</script> | |
</body> | |
</html> |