| 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 <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 waitForEvent('canplaythrough', function () { | 11 waitForEventOnce('canplaythrough', function () { |
| 12 testExpected("video.paused", true); | 12 testExpected("video.paused", true); |
| 13 run("video.play()"); | 13 run("video.play()"); |
| 14 testExpected("video.paused", false); | 14 testExpected("video.paused", false); |
| 15 }); | 15 }); |
| 16 | 16 |
| 17 function timeupdate() | 17 function timeupdate() |
| 18 { | 18 { |
| 19 ++timeupdateEventCount; | 19 ++timeupdateEventCount; |
| 20 | 20 |
| 21 // wait 2 timeupdate events so we are sure the media engine is | 21 // wait 2 timeupdate events so we are sure the media engine is |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 mediaElement.addEventListener("timeupdate", timeupdate); | 43 mediaElement.addEventListener("timeupdate", timeupdate); |
| 44 var mediaFile = findMediaFile("video", "content/test"); | 44 var mediaFile = findMediaFile("video", "content/test"); |
| 45 disableFullTestDetailsPrinting(); | 45 disableFullTestDetailsPrinting(); |
| 46 runSilently("video.src = '" + mediaFile + "'"); | 46 runSilently("video.src = '" + mediaFile + "'"); |
| 47 enableFullTestDetailsPrinting(); | 47 enableFullTestDetailsPrinting(); |
| 48 </script> | 48 </script> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |