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

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

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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
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 <!-- 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698