blob: 930c94ee586015eb7d1da1b5605bf9aff9a1689e [file] [log] [blame]
<html>
<body>
<a id="test" onclick="go()">Go?</a>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setPopupBlockingEnabled(true);
testRunner.setCloseRemainingWindowsWhenComplete(true);
}
oClickEvent = document.createEvent("MouseEvents");
oClickEvent.initEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
document.getElementById("test").dispatchEvent(oClickEvent);
function go() {
oWin = window.open("about:blank", "blabla");
alert(oWin ? "FAIL" : "PASS");
}
</script>
</body>
</html>