blob: 8bbcd66ae2d6691eed3b05b429ca463014b3479e [file] [log] [blame]
<!DOCTYPE html>
<title>Test that the painted buffered range contains currentTime.</title>
<script src="../../media-resources/media-file.js"></script>
<video controls></video>
<script>
var video = document.querySelector("video");
if (window.testRunner) {
testRunner.waitUntilDone();
}
video.onended = function() {
if (window.testRunner) {
testRunner.notifyDone();
}
};
video.onseeked = function() {
video.play();
};
video.onloadedmetadata = function() {
video.currentTime = video.duration - 0.5;
};
var mediaFile = "../../../media/content/test.oga";
var type = mimeTypeForExtension(mediaFile.split(".").pop());
video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + mediaFile + "&throttle=5000&nph=1&type=" + type;
</script>