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 <script src=video-test.js></script> | 5 <script src=video-test.js></script> |
6 | 6 |
7 <script> | 7 <script> |
8 var controller; | 8 var controller; |
9 var video2; | 9 var video2; |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 controller.addEventListener('playing', playing, true); | 25 controller.addEventListener('playing', playing, true); |
26 run('controller.play()'); | 26 run('controller.play()'); |
27 } | 27 } |
28 | 28 |
29 function playing() { | 29 function playing() { |
30 consoleWrite("EVENT(playing)"); | 30 consoleWrite("EVENT(playing)"); |
31 controller.removeEventListener('playing', playing, true); | 31 controller.removeEventListener('playing', playing, true); |
32 testExpected('controller.paused', false); | 32 testExpected('controller.paused', false); |
33 controller.addEventListener('ended', ended, true); | 33 controller.addEventListener('ended', ended, true); |
34 run('controller.currentTime = 5'); | 34 run('controller.currentTime = 5'); |
| 35 testExpected('controller.currentTime', 5); |
35 testExpected('video.currentTime', 5); | 36 testExpected('video.currentTime', 5); |
36 testExpected('video2.currentTime', 5); | 37 testExpected('video2.currentTime', 5); |
37 } | 38 } |
38 | 39 |
39 function ended() { | 40 function ended() { |
40 consoleWrite("EVENT(ended)"); | 41 consoleWrite("EVENT(ended)"); |
41 controller.removeEventListener('ended', ended, true); | 42 controller.removeEventListener('ended', ended, true); |
42 endTest(); | 43 endTest(); |
43 } | 44 } |
44 </script> | 45 </script> |
45 </head> | 46 </head> |
46 <body onload="start()"> | 47 <body onload="start()"> |
47 <video mediaGroup="group" controls></video> | 48 <video mediaGroup="group" controls></video> |
48 <video mediaGroup="group" controls></video> | 49 <video mediaGroup="group" controls></video> |
49 </body> | 50 </body> |
50 </html> | 51 </html> |
OLD | NEW |