3 <form action=
"resources/popup-allowed-from-gesture-initiated-form-submit-target.html" method=
"post" target=
"_blank">
4 <input id=
"button" type=
"submit" value=
"Click Here" />
6 <div id=
"console">FAIL
</div>
8 if (window
.testRunner
) {
9 testRunner
.dumpAsText();
10 testRunner
.setCanOpenWindows();
11 testRunner
.setPopupBlockingEnabled(true);
12 testRunner
.setCloseRemainingWindowsWhenComplete(true);
13 testRunner
.waitUntilDone();
15 var button
= document
.getElementById("button");
17 window
.onload = function() {
18 if (window
.eventSender
) {
19 eventSender
.mouseMoveTo(button
.offsetLeft
+ button
.offsetWidth
/ 2, button
.offsetTop
+ button
.offsetHeight
/ 2);
20 eventSender
.mouseDown();
21 eventSender
.mouseUp();