Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: LayoutTests/media/video-seek-past-end-playing.html

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix event-attributes expectations. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/media/video-seek-by-small-increment.html ('k') | LayoutTests/media/video-seeking.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698