blob: c22ef478fd58f2590d5a575e64eb1cac67e9b555 [file] [log] [blame]
<html>
<head>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
</head>
<body>
<button id="test" onclick="popup()" style="display:none"></button>
<div id="console"></div>
<script>
var win;
function popup() {
win = window.open("about:blank", "blank");
assert_equals(win, null);
}
if (window.testRunner) {
testRunner.setCanOpenWindows();
testRunner.setPopupBlockingEnabled(true);
}
test(() => document.getElementById("test").click(), 'Fake button click');
</script>
</body>
</html>