Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / controls-drag-timebar-rendering.html
blob135ff577db7ef77e4bbe231547c51c273eab28e2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>drag timebar reftest</title>
5 <script src=media-controls.js></script>
6 <script src=media-file.js></script>
7 </head>
8 <body>
9 <video controls></video>
10 <script>
11 if (window.testRunner)
12 testRunner.waitUntilDone();
14 var video = document.querySelector("video");
15 video.src = findMediaFile("video", "content/test");
16 video.addEventListener("loadeddata", function()
18 video.play();
20 if (window.eventSender) {
21 var coords = mediaControlsButtonCoordinates(video, "timeline");
22 eventSender.mouseMoveTo(coords[0], coords[1]);
23 eventSender.mouseDown();
26 if (window.testRunner)
27 testRunner.notifyDone();
28 });
29 </script>
30 </body>
31 </html>