| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src=media-file.js></script> | 4 <script src=media-file.js></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
| 7 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var seekCount = 0; | 10 var seekCount = 0; |
| 11 var playCount = 0; | 11 var playCount = 0; |
| 12 | 12 |
| 13 function play() | 13 function play() |
| 14 { | 14 { |
| 15 if (video.readyState < HTMLMediaElement.HAVE_METADATA) { | 15 if (video.readyState < HTMLMediaElement.HAVE_METADATA) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 <ol> | 115 <ol> |
| 116 <li>Play to end with 'loop' set to true.</li> | 116 <li>Play to end with 'loop' set to true.</li> |
| 117 <li>When 'seeked' event fires, verify that time has jumped back and
movie is playing.</li> | 117 <li>When 'seeked' event fires, verify that time has jumped back and
movie is playing.</li> |
| 118 <li>Set 'loop' to false and play again.</li> | 118 <li>Set 'loop' to false and play again.</li> |
| 119 <li>Verify that 'ended' event fires.</li> | 119 <li>Verify that 'ended' event fires.</li> |
| 120 </ol> | 120 </ol> |
| 121 </p> | 121 </p> |
| 122 <script>start()</script> | 122 <script>start()</script> |
| 123 </body> | 123 </body> |
| 124 </html> | 124 </html> |
| OLD | NEW |