blob: 4a6f73ed44369925d260be5e90a5676a04159350 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<a id=test href="javascript:popup()">test</a>
<div id="console"></div>
<script>
var win;
function popup() {
win = window.open('about:blank','blank','height=200,width=200');
shouldBeNull("win");
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setPopupBlockingEnabled(true);
testRunner.setCloseRemainingWindowsWhenComplete(true);
testRunner.waitUntilDone();
}
clickEvent = document.createEvent("MouseEvents");
clickEvent.initEvent("click", true, true, document.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
document.getElementById("test").dispatchEvent(clickEvent);
if (window.testRunner)
testRunner.notifyDone();
</script>
</body>
</html>