Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / drag-link.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div>
5 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=70277">bug 70277</a>.
6 This tests that a link is dragged and dropped properly in an already focused editable area.
7 This test passes only if it does not hit an assertion.
8 </p>
9 <a href=# id="anchorElement">Test Link</a>
10 </div>
11 <div id="editableDiv" contenteditable="true">
12 <h3>Editable area</h3>
13 <br>
14 <br>
15 </div>
16 <div id="result">
17 </div>
18 <script>
19 function dragElement(srcElement, destElement) 
20 {
21     eventSender.mouseMoveTo(srcElement.offsetLeft + srcElement.offsetWidth / 2,
22         srcElement.offsetTop + srcElement.offsetHeight / 2);
23     eventSender.mouseDown();
24     eventSender.leapForward(100);
25     eventSender.mouseMoveTo(destElement.offsetLeft + destElement.offsetWidth / 2,
26         destElement.offsetTop + destElement.offsetHeight / 2);
27     eventSender.mouseUp();
28
29     document.getElementById('result').innerHTML = "PASS";
30 }
31
32 if (window.testRunner)
33     testRunner.dumpAsText();
34
35 var editableDiv = document.getElementById('editableDiv');
36 editableDiv.focus();
37 dragElement(document.getElementById('anchorElement'), editableDiv);
38 </script>
39 </body>
40 </html>