| <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(); setTimeout(testCurrentTime, 500) }); | |
| waitForEvent('play'); | |
| function testCurrentTime() | |
| { | |
| testExpected("video.currentTime", 0, '>') | |
| endTest(); | |
| } | |
| video.src = findMediaFile("video", "content/test"); | |
| </script> |