OLD | NEW |
1 <video controls></video> | 1 <video controls></video> |
2 <p>Test that seeking attribute is true immediately after a seek, | 2 <p>Test that seeking attribute is true immediately after a seek, |
3 goes back to false when seeking completes, and that a 'seeked' event | 3 goes back to false when seeking completes, and that a 'seeked' event |
4 is fired for each seek | 4 is fired for each seek |
5 </p> | 5 </p> |
6 <script src=media-file.js></script> | 6 <script src=media-file.js></script> |
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 7 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
8 (Please avoid writing new tests using video-test.js) --> | 8 (Please avoid writing new tests using video-test.js) --> |
9 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
10 <script> | 10 <script> |
11 | 11 |
12 var seekedCount = 0; | 12 var seekedCount = 0; |
13 | 13 |
14 function seeked() | 14 function seeked() |
15 { | 15 { |
16 ++seekedCount; | 16 ++seekedCount; |
17 consoleWrite(""); | 17 consoleWrite(""); |
(...skipping 21 matching lines...) Expand all Loading... |
39 run("video.currentTime = 0.5"); | 39 run("video.currentTime = 0.5"); |
40 consoleWrite(""); | 40 consoleWrite(""); |
41 } | 41 } |
42 | 42 |
43 waitForEvent('waiting' ); | 43 waitForEvent('waiting' ); |
44 waitForEvent('seeked', seeked ); | 44 waitForEvent('seeked', seeked ); |
45 waitForEventOnce('canplaythrough', canplaythrough); | 45 waitForEventOnce('canplaythrough', canplaythrough); |
46 | 46 |
47 video.src = findMediaFile("video", "content/test"); | 47 video.src = findMediaFile("video", "content/test"); |
48 </script> | 48 </script> |
OLD | NEW |