4 <script src=media-file.js
></script>
5 <script src=video-test.js
></script>
7 function onWindowLoad(e
)
9 video
= document
.getElementById('video');
11 video
.src
= findMediaFile("video", "content/test");
12 testExpected("video.currentTime", 0);
13 video
.currentTime
= 1;
14 testExpected("video.currentTime", 1);
16 waitForEvent('loadedmetadata', function()
18 testExpected("video.currentTime", 1);
21 waitForEventAndEnd('seeked');
24 window
.addEventListener('load', onWindowLoad
, false);
28 <video controls
id=
"video"></video>
29 <p>Test currentTime values when setting while HAVE_NOTHING.
</p>