Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / popup-allowed-from-gesture-initiated-form-submit.html
blobbb1a807a773e76a791e07f111f61065097fe84eb
1 <html>
2 <body>
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" />
5 </form>
6 <div id="console">FAIL</div>
7 <script>
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();
25 </script>
26 </body>
27 </html>