| 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 |
| 8 (Please avoid writing new tests using video-test.js) --> |
| 7 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
| 8 <script> | 10 <script> |
| 9 | 11 |
| 10 var seekedCount = 0; | 12 var seekedCount = 0; |
| 11 | 13 |
| 12 function seeked() | 14 function seeked() |
| 13 { | 15 { |
| 14 ++seekedCount; | 16 ++seekedCount; |
| 15 consoleWrite(""); | 17 consoleWrite(""); |
| 16 | 18 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 run("video.currentTime = 0.5"); | 39 run("video.currentTime = 0.5"); |
| 38 consoleWrite(""); | 40 consoleWrite(""); |
| 39 } | 41 } |
| 40 | 42 |
| 41 waitForEvent('waiting' ); | 43 waitForEvent('waiting' ); |
| 42 waitForEvent('seeked', seeked ); | 44 waitForEvent('seeked', seeked ); |
| 43 waitForEventOnce('canplaythrough', canplaythrough); | 45 waitForEventOnce('canplaythrough', canplaythrough); |
| 44 | 46 |
| 45 video.src = findMediaFile("video", "content/test"); | 47 video.src = findMediaFile("video", "content/test"); |
| 46 </script> | 48 </script> |
| OLD | NEW |