blob: a2e78d909bbba6d72bdeab36687abf5751cb6ae2 [file] [log] [blame]
<video controls></video>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
testExpected("video.currentTime", 0)
waitForEvent('canplaythrough', function() { testExpected("video.currentTime", 0); } );
video.addEventListener('canplaythrough', function() { video.play(); });
waitForEvent('play');
video.addEventListener('timeupdate', function() {
if (video.currentTime > 0) {
logResult(true, 'video.currentTime > 0');
endTest();
}
});
video.src = findMediaFile("video", "content/test");
failTestIn(3000);
</script>