OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 | 3 |
4 <video loop controls></video> | 4 <video loop controls></video> |
5 <p>Test that seeking video with 'loop' past it's end rewinds to the beginning an
d continues playback.</p> | 5 <p>Test that seeking video with 'loop' past it's end rewinds to the beginning an
d continues playback.</p> |
6 <script src=media-file.js></script> | 6 <script src=media-file.js></script> |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
7 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
8 <script> | 10 <script> |
9 var timeupdateEventCount = 0; | 11 var timeupdateEventCount = 0; |
10 | 12 |
11 waitForEventOnce('canplaythrough', function () { | 13 waitForEventOnce('canplaythrough', function () { |
12 testExpected("video.paused", true); | 14 testExpected("video.paused", true); |
13 run("video.play()"); | 15 run("video.play()"); |
14 testExpected("video.paused", false); | 16 testExpected("video.paused", false); |
15 }); | 17 }); |
16 | 18 |
(...skipping 24 matching lines...) Expand all Loading... |
41 } | 43 } |
42 | 44 |
43 mediaElement.addEventListener("timeupdate", timeupdate); | 45 mediaElement.addEventListener("timeupdate", timeupdate); |
44 var mediaFile = findMediaFile("video", "content/test"); | 46 var mediaFile = findMediaFile("video", "content/test"); |
45 disableFullTestDetailsPrinting(); | 47 disableFullTestDetailsPrinting(); |
46 runSilently("video.src = '" + mediaFile + "'"); | 48 runSilently("video.src = '" + mediaFile + "'"); |
47 enableFullTestDetailsPrinting(); | 49 enableFullTestDetailsPrinting(); |
48 </script> | 50 </script> |
49 </body> | 51 </body> |
50 </html> | 52 </html> |
OLD | NEW |