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 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
7 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
8 <script> | 8 <script> |
9 var timeupdateEventCount = 0; | 9 var timeupdateEventCount = 0; |
10 | 10 |
11 function doSetup() | 11 function doSetup() |
12 { | 12 { |
13 findMediaElement(); | 13 findMediaElement(); |
14 waitForEvent('canplaythrough', canPlayThrough); | 14 waitForEvent('canplaythrough', canPlayThrough); |
15 video.src = findMediaFile('video', 'content/test'); | 15 video.src = findMediaFile('video', 'content/test'); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 timeupdateEventCount = 0; | 63 timeupdateEventCount = 0; |
64 endTest(); | 64 endTest(); |
65 } | 65 } |
66 </script> | 66 </script> |
67 </head> | 67 </head> |
68 <body> | 68 <body> |
69 <video controls></video> | 69 <video controls></video> |
70 <p>Test that seeking a paused video past its end sets currentTime to dur
ation and leaves the video paused.</p> | 70 <p>Test that seeking a paused video past its end sets currentTime to dur
ation and leaves the video paused.</p> |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
OLD | NEW |