OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>video with a postive start time</title> | 2 <title>video with a postive start time</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <div id="log"></div> | 5 <video></video> |
6 <video controls></video> | |
7 <script> | 6 <script> |
8 async_test(function(t) { | 7 async_test(function(t) { |
9 var video = document.querySelector('video'); | 8 var video = document.querySelector('video'); |
10 | 9 |
11 video.onloadeddata = t.step_func(function() { | 10 video.onloadeddata = t.step_func_done(function() { |
12 assert_equals(video.currentTime, 3, 'currentTime'); | 11 assert_equals(video.currentTime, 3, 'currentTime'); |
13 | 12 |
14 // FIXME: Once Chrome correctly exposes seekable ranges for media with | 13 // FIXME: Once Chrome correctly exposes seekable ranges for media with |
15 // positive start times, verify video.seekable.start(0) here. | 14 // positive start times, verify video.seekable.start(0) here. |
16 t.done(); | |
17 }); | 15 }); |
18 | 16 |
19 video.src = 'resources/test-positive-start-time.webm'; | 17 video.src = 'resources/test-positive-start-time.webm'; |
20 }); | 18 }); |
21 </script> | 19 </script> |
OLD | NEW |