Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-hit-test.html
blob21638982917c8439b0b0f241c79a89ade6226ff1
1 <!DOCTYPE htlm>
2 <html>
3 <body>
4 <p>This tests clicking on a region immediately after a file input field. WebKit should not crash and you should see PASS below.
5 To manually test this, click on the black region below.</p>
6 <div id="form" style="width: 200px; height: 200px; position: absolute; top: 20px; left: 0px; background: black;">
7 <input type="file" style="width: 100px; height: 50px; display: block; padding: 10px; background: white;">
8 </div>
9 <script>
11 if (window.testRunner && window.eventSender) {
12 testRunner.dumpAsText();
14 eventSender.mouseMoveTo(180, 50);
15 eventSender.leapForward(200);
16 eventSender.mouseDown();
17 eventSender.leapForward(200);
18 eventSender.mouseUp();
19 eventSender.leapForward(200);
20 document.writeln('PASS');
23 </script>
24 </body>
25 </html>