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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-set-rate-from-pause.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 7 <script src=video-test.js></script>
6 <script> 8 <script>
7 function init() { 9 function init() {
8 findMediaElement(); 10 findMediaElement();
9 waitForEvent('canplaythrough', receivedCanPlayThrough); 11 waitForEvent('canplaythrough', receivedCanPlayThrough);
10 video.src = findMediaFile("video", "content/test"); 12 video.src = findMediaFile("video", "content/test");
11 } 13 }
12 14
13 function receivedCanPlayThrough() { 15 function receivedCanPlayThrough() {
14 waitForEvent('play', receivedPlay); 16 waitForEvent('play', receivedPlay);
15 video.playbackRate = 0; 17 video.playbackRate = 0;
16 video.play(); 18 video.play();
17 } 19 }
18 20
19 function receivedPlay() { 21 function receivedPlay() {
20 waitForEventAndEnd('timeupdate'); 22 waitForEventAndEnd('timeupdate');
21 video.playbackRate = 1; 23 video.playbackRate = 1;
22 } 24 }
23 </script> 25 </script>
24 </head> 26 </head>
25 <body onload="init()"> 27 <body onload="init()">
26 <video controls></video> 28 <video controls></video>
27 <p>Test that setting a non-zero rate causes an async timeupdate event.</ p> 29 <p>Test that setting a non-zero rate causes an async timeupdate event.</ p>
28 </body> 30 </body>
29 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698