blob: e7e9ebf8fdc04a245e6dc38b656ea0f6fb8c6295 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.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');
shouldBeUndefined("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>