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 | 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
5 (Please avoid writing new tests using video-test.js) --> | 5 (Please avoid writing new tests using video-test.js) --> |
6 <script src=../../media-resources/video-test.js></script> | 6 <script src=../../media-resources/video-test.js></script> |
7 <script> | 7 <script> |
8 function testCommonAttributes(seekingExpected) | 8 function testCommonAttributes(seekingExpected) |
9 { | 9 { |
10 testExpected('video.seeking', seekingExpected, '=='); | 10 testExpected('video.seeking', seekingExpected, '=='); |
11 testExpected('video.ended', false, '=='); | 11 testExpected('video.ended', false, '=='); |
12 testExpected('video.currentTime == (video.duration / 2)', true,
'=='); | 12 testExpected('video.currentTime == (video.duration / 2)', true,
'=='); |
13 testExpected('video.paused', false, '=='); | 13 testExpected('video.paused', false, '=='); |
14 } | 14 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 video.src = '/' + mediaFile; | 54 video.src = '/' + mediaFile; |
55 run('video.play()'); | 55 run('video.play()'); |
56 } | 56 } |
57 </script> | 57 </script> |
58 </head> | 58 </head> |
59 <body onload="start()"> | 59 <body onload="start()"> |
60 <video></video> | 60 <video></video> |
61 <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> |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |