Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-currentTime-before-have-metadata.html
blob3e675cecc3d57634dc48f2eaa240e9cbbadfc357
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
6 <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);
19 });
21 waitForEventAndEnd('seeked');
24 window.addEventListener('load', onWindowLoad, false);
25 </script>
26 </head>
27 <body>
28 <video controls id="video"></video>
29 <p>Test currentTime values when setting while HAVE_NOTHING.</p>
30 <br/>
31 </body>
32 </html>