4 <title>media controls timeline
</title>
5 <script src=
"media-file.js"></script>
6 <script src=
"media-controls.js"></script>
7 <script src=
"video-test.js"></script>
10 <video controls
></video>
13 video
.src
= findMediaFile("video", "content/test");
14 waitForEvent("loadedmetadata", function()
16 testExpected("video.currentTime", 0);
17 testExpected("video.seeking", false);
19 // click the middle of the timeline
20 var coords
= mediaControlsButtonCoordinates(video
, "timeline");
21 eventSender
.mouseMoveTo(coords
[0], coords
[1]);
22 eventSender
.mouseDown();
23 eventSender
.mouseUp();
25 testExpected("video.currentTime / video.duration", 0.4, '>');
26 testExpected("video.currentTime / video.duration", 0.6, '<');
27 testExpected("video.seeking", true);