[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-controls-drag.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4     <title>video-controls-dragstart</title>
5     <style>
6         video {  border: 1px solid black; }
7     </style>
8     <script src="video-test.js"></script>
9     <script>
10     function go() {
11         video = document.getElementsByTagName('video')[0];
12         waitForEventAndEnd('drag');
13
14         if (window.eventSender) {
15             eventSender.mouseMoveTo(video.offsetLeft + 10, video.offsetTop + 10);
16             eventSender.mouseDown();
17             eventSender.leapForward(200);
18             eventSender.mouseMoveTo(video.offsetLeft + 100, video.offsetTop + 100);
19             eventSender.mouseUp();
20         }
21     }
22     </script>
23 <body onload="go()">
24     <div>This tests that videos with controls enabled are still draggable. In a browser, start the test by dragging the video outside its controls area.</div>
25     <video controls draggable="true"></video>
26 </body>
27 </html>