OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src=../../media-resources/media-file.js></script> | 3 <script src=../../media-resources/media-file.js></script> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
4 <script src=../../media-resources/video-test.js></script> | 6 <script src=../../media-resources/video-test.js></script> |
5 <script> | 7 <script> |
6 function start() | 8 function start() |
7 { | 9 { |
8 findMediaElement(); | 10 findMediaElement(); |
9 | 11 |
10 waitForEvent('durationchange'); | 12 waitForEvent('durationchange'); |
11 waitForEvent('loadedmetadata'); | 13 waitForEvent('loadedmetadata'); |
12 waitForEventOnce('loadeddata', function () | 14 waitForEventOnce('loadeddata', function () |
13 { | 15 { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 video.src = '/' + mediaFile; | 68 video.src = '/' + mediaFile; |
67 run('video.play()'); | 69 run('video.play()'); |
68 } | 70 } |
69 </script> | 71 </script> |
70 </head> | 72 </head> |
71 <body onload="start()"> | 73 <body onload="start()"> |
72 <video></video> | 74 <video></video> |
73 <p>Test event dispatches and attribute changes for seek to duration</p> | 75 <p>Test event dispatches and attribute changes for seek to duration</p> |
74 </body> | 76 </body> |
75 </html> | 77 </html> |
OLD | NEW |