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 testCommonAttributes(seekingExpected) | 8 function testCommonAttributes(seekingExpected) |
7 { | 9 { |
8 testExpected('video.seeking', seekingExpected, '=='); | 10 testExpected('video.seeking', seekingExpected, '=='); |
9 testExpected('video.ended', false, '=='); | 11 testExpected('video.ended', false, '=='); |
10 testExpected('video.currentTime == (video.duration / 2)', true,
'=='); | 12 testExpected('video.currentTime == (video.duration / 2)', true,
'=='); |
11 testExpected('video.paused', false, '=='); | 13 testExpected('video.paused', false, '=='); |
12 } | 14 } |
13 | 15 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 video.src = '/' + mediaFile; | 54 video.src = '/' + mediaFile; |
53 run('video.play()'); | 55 run('video.play()'); |
54 } | 56 } |
55 </script> | 57 </script> |
56 </head> | 58 </head> |
57 <body onload="start()"> | 59 <body onload="start()"> |
58 <video></video> | 60 <video></video> |
59 <p>Test event dispatches and attribute changes for seek to middle</p> | 61 <p>Test event dispatches and attribute changes for seek to middle</p> |
60 </body> | 62 </body> |
61 </html> | 63 </html> |
OLD | NEW |