Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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) | |
| 8 { | |
| 9 video = document.getElementById('video'); | |
| 10 | |
| 11 video.src = findMediaFile("video", "content/test"); | |
| 12 testExpected("video.currentTime", 0); | |
| 13 video.currentTime = 1; | |
|
philipj_slow
2014/09/10 09:57:05
Add testExpected("video.currentTime", 1) after thi
amogh.bihani
2014/09/10 11:18:33
Done.
| |
| 14 | |
| 15 waitForEvent('loadedmetadata', function() | |
| 16 { | |
| 17 testExpected("video.currentTime", 1); | |
| 18 }); | |
| 19 | |
| 20 waitForEvent('seeked', function() | |
|
philipj_slow
2014/09/10 09:57:05
This can be simplified to waitForEventAndEnd("seek
amogh.bihani
2014/09/10 11:18:33
Done.
| |
| 21 { | |
| 22 endTest(); | |
| 23 }); | |
| 24 } | |
| 25 | |
| 26 window.addEventListener('load', onWindowLoad, false); | |
| 27 </script> | |
| 28 </head> | |
| 29 <body> | |
| 30 <video controls id="video"></video> | |
| 31 <p>Test currentTime values when setting while HAVE_NOTHING.</p> | |
| 32 <br/> | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |