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

Side by Side Diff: LayoutTests/media/media-controller-playbackrate.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
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 <script src=video-test.js></script> 5 <script src=video-test.js></script>
6 <script> 6 <script>
7 var start = function() { 7 var start = function() {
8 findMediaElement(); 8 findMediaElement();
9 waitForEvent('canplay',canplay); 9 waitForEventOnce('canplay',canplay);
10 video.src = findMediaFile('video', 'content/test'); 10 video.src = findMediaFile('video', 'content/test');
11 }; 11 };
12 12
13 var canplay = function() { 13 var canplay = function() {
14 video.mediaGroup = "group"; 14 video.mediaGroup = "group";
15 15
16 // Test non-finite rates. 16 // Test non-finite rates.
17 testException("video.controller.defaultPlaybackRate = -Infinity" , '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaCont roller\': The provided double value is non-finite."'); 17 testException("video.controller.defaultPlaybackRate = -Infinity" , '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaCont roller\': The provided double value is non-finite."');
18 testException("video.controller.defaultPlaybackRate = Infinity", '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaContr oller\': The provided double value is non-finite."'); 18 testException("video.controller.defaultPlaybackRate = Infinity", '"TypeError: Failed to set the \'defaultPlaybackRate\' property on \'MediaContr oller\': The provided double value is non-finite."');
19 testException("video.controller.defaultPlaybackRate = NaN", '"Ty peError: Failed to set the \'defaultPlaybackRate\' property on \'MediaController \': The provided double value is non-finite."'); 19 testException("video.controller.defaultPlaybackRate = NaN", '"Ty peError: Failed to set the \'defaultPlaybackRate\' property on \'MediaController \': The provided double value is non-finite."');
(...skipping 18 matching lines...) Expand all
38 var timeupdate = function() { 38 var timeupdate = function() {
39 testExpected('video.currentTime', 0, '!='); 39 testExpected('video.currentTime', 0, '!=');
40 endTest(); 40 endTest();
41 }; 41 };
42 </script> 42 </script>
43 </head> 43 </head>
44 <body onload="start()"> 44 <body onload="start()">
45 <video controls></video> 45 <video controls></video>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/media-controller-effective-playback-rate.html ('k') | LayoutTests/media/video-seek-to-current-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698