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 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
6 | 8 |
7 <script> | 9 <script> |
8 var endedCount = 0; | 10 var endedCount = 0; |
9 var canplaythroughCount = 0; | 11 var canplaythroughCount = 0; |
10 var audio; | 12 var audio; |
11 | 13 |
12 function start() | 14 function start() |
13 { | 15 { |
14 audio = document.querySelector("audio"); | 16 audio = document.querySelector("audio"); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 <audio controls autoplay></audio> | 55 <audio controls autoplay></audio> |
54 <p><b>Test ended by:</b> | 56 <p><b>Test ended by:</b> |
55 <ol> | 57 <ol> |
56 <li>Play to the end.</li> | 58 <li>Play to the end.</li> |
57 <li>When 'ended' event fires, change the source.</li> | 59 <li>When 'ended' event fires, change the source.</li> |
58 <li>Verify that 'ended' event fires again on different source.</li> | 60 <li>Verify that 'ended' event fires again on different source.</li> |
59 </ol> | 61 </ol> |
60 </p> | 62 </p> |
61 </body> | 63 </body> |
62 </html> | 64 </html> |
OLD | NEW |