<video controls></video> | |
<script src=video-test.js></script> | |
<script> | |
waitForEvent('load', | |
function () { | |
video.currentTime = 1.5; | |
test("video.currentTime.toFixed(1) == 1.5"); | |
video.play(); | |
video.currentTime = 3.1; | |
test("video.currentTime.toFixed(1) == 3.1"); | |
endTest(); | |
}); | |
video.src = "content/test.mp4"; | |
</script> |