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

Side by Side Diff: LayoutTests/media/media-controller-effective-playback-rate.html

Issue 340553004: Always notify the MediaPlayer of any seek. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-playbackrate.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test effective playback rate with a MediaController.</title> 4 <title>Test effective playback rate with a MediaController.</title>
5 <script src="media-file.js"></script> 5 <script src="media-file.js"></script>
6 <script src="video-test.js"></script> 6 <script src="video-test.js"></script>
7 <script> 7 <script>
8 var start = function() 8 var start = function()
9 { 9 {
10 findMediaElement(); 10 findMediaElement();
11 video.src = findMediaFile("video", "content/test"); 11 video.src = findMediaFile("video", "content/test");
12 12
13 // Set the rate on the media element so playback won't move forw ard. 13 // Set the rate on the media element so playback won't move forw ard.
14 video.playbackRate = 0; 14 video.playbackRate = 0;
15 15
16 waitForEvent("canplay",canplay); 16 waitForEventOnce("canplay",canplay);
17 }; 17 };
18 18
19 var canplay = function() 19 var canplay = function()
20 { 20 {
21 video.controller = new MediaController(); 21 video.controller = new MediaController();
22 22
23 // Verify the controller playback rate is 1. This 23 // Verify the controller playback rate is 1. This
24 // means the "effective playback rate" is 1 even though 24 // means the "effective playback rate" is 1 even though
25 // the HTMLMediaElement's playbackRate attribute is 0. 25 // the HTMLMediaElement's playbackRate attribute is 0.
26 testExpected("video.controller.playbackRate", 1); 26 testExpected("video.controller.playbackRate", 1);
(...skipping 12 matching lines...) Expand all
39 var timeupdate = function() { 39 var timeupdate = function() {
40 testExpected("video.currentTime", 0, "!="); 40 testExpected("video.currentTime", 0, "!=");
41 endTest(); 41 endTest();
42 }; 42 };
43 </script> 43 </script>
44 </head> 44 </head>
45 <body onload="start()"> 45 <body onload="start()">
46 <video></video> 46 <video></video>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-playbackrate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698