Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / gesture / long-press-on-draggable-element-in-nested-iframes-triggers-drag.html
bloba2f795828d993b25596504ec1597826b880ea3d6
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <iframe src="resources/drag-inside-nested-iframes2.html"></iframe>
8 <p>This test checks that a long press gesture on a draggable element in an iframe starts a drag/drop session.</p>
9 <div id="text">Testing</div>
10 <div id="dragResult">FAIL</div>
11 <div id="mouseDownResult">PASS</div>
12 <script>
13 function onDragStart() {
14 document.getElementById("dragResult").innerHTML = "PASS";
16 function onMouseDown() {
17 document.getElementById("mouseDownResult").innerHTML = "FAIL";
19 function runTest()
21 if (window.testRunner)
22 testRunner.dumpAsText();
24 if (window.internals)
25 internals.settings.setTouchDragDropEnabled(true);
27 if (!window.eventSender)
28 return;
29 if (eventSender.gestureLongPress) {
30 eventSender.gestureLongPress(20, 20);
31 } else {
32 debug("gestureLongPress not implemented by this platform");
33 return;
36 </script>
37 </body>
38 </html>