| <!DOCTYPE html><!-- webkit-test-runner [ enableModernMediaControls=false ] --> |
| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| <script src=media-controls.js></script> |
| video.src = findMediaFile("video", "content/test"); |
| waitForEvent("canplaythrough", canplaythrough); |
| waitForEvent("playing", function() { setTimeout(function () { }, 200); }); |
| waitForEvent("pause", paused); |
| waitForEventAndFail("error"); |
| var timeline = mediaControlsElement(internals.shadowRoot(video).firstChild.firstChild, '-webkit-media-controls-timeline'); |
| throw "Failed to find -webkit-media-controls-timeline"; |
| test("video.currentTime > 0"); |
| test("timeLineValue() > 0"); |
| function canplaythrough() |
| testExpected("timeLineValue()", 0); |
| video.addEventListener("seeked", function() { |
| video.fastSeek(video.duration - 1); |
| <p>This tests that media controls timeline updates during playback.</p> |
| <p>This test only runs in DRT!</p> |