blob: 79ab01b540acddc9bc02a92f7a0c2953900bcb97 [file] [log] [blame]
<html> <!-- webkit-test-runner [ JavaScriptCanOpenWindowsAutomatically=false ] -->
<body>
<form action="resources/popup-allowed-from-gesture-initiated-form-submit-target.html" method="post" target="_blank">
<input id="button" type="submit" value="Click Here" />
</form>
<div id="console">FAIL</div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
var button = document.getElementById("button");
if (window.eventSender) {
eventSender.mouseMoveTo(button.offsetLeft + button.offsetWidth / 2, button.offsetTop + button.offsetHeight / 2);
eventSender.mouseDown();
eventSender.mouseUp();
}
}
</script>
</body>
</html>