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 | 7 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
8 (Please avoid writing new tests using video-test.js) --> | 8 (Please avoid writing new tests using video-test.js) --> |
9 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
10 <script> | 10 <script> |
11 var timeupdateEventCount = 0; | 11 var timeupdateEventCount = 0; |
12 | 12 |
13 waitForEventOnce('canplaythrough', function () { | 13 waitForEventOnce('canplaythrough', function () { |
14 testExpected("video.paused", true); | 14 testExpected("video.paused", true); |
15 run("video.play()"); | 15 run("video.play()"); |
16 testExpected("video.paused", false); | 16 testExpected("video.paused", false); |
17 }); | 17 }); |
(...skipping 25 matching lines...) Expand all Loading... |
43 } | 43 } |
44 | 44 |
45 mediaElement.addEventListener("timeupdate", timeupdate); | 45 mediaElement.addEventListener("timeupdate", timeupdate); |
46 var mediaFile = findMediaFile("video", "content/test"); | 46 var mediaFile = findMediaFile("video", "content/test"); |
47 disableFullTestDetailsPrinting(); | 47 disableFullTestDetailsPrinting(); |
48 runSilently("video.src = '" + mediaFile + "'"); | 48 runSilently("video.src = '" + mediaFile + "'"); |
49 enableFullTestDetailsPrinting(); | 49 enableFullTestDetailsPrinting(); |
50 </script> | 50 </script> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |