1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../../resources/js-test.js"></script>
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>
13 function onDragStart() {
14 document
.getElementById("dragResult").innerHTML
= "PASS";
16 function onMouseDown() {
17 document
.getElementById("mouseDownResult").innerHTML
= "FAIL";
21 if (window
.testRunner
)
22 testRunner
.dumpAsText();
25 internals
.settings
.setTouchDragDropEnabled(true);
27 if (!window
.eventSender
)
29 if (eventSender
.gestureLongPress
) {
30 eventSender
.gestureLongPress(20, 20);
32 debug("gestureLongPress not implemented by this platform");