<video controls></video> | |
<p>Test that when start DOM attribute is set, playback starts from that time.</p> | |
<script src=video-test.js></script> | |
<script> | |
video.start = 1.0; | |
test("video.start == 1.0"); | |
test("video.getAttribute('start') == '1s'"); | |
waitForEventTestAndEnd('canplaythrough', "video.currentTime == 1.0"); | |
video.src = "content/test.mp4"; | |
run("video.load()"); | |
</script> |