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

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

Issue 219523004: Let MediaController.currentTime return the position previously set (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-playback-expected.txt » ('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 <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 6
7 <script> 7 <script>
8 var controller; 8 var controller;
9 var video2; 9 var video2;
10 10
(...skipping 14 matching lines...) Expand all
25 controller.addEventListener('playing', playing, true); 25 controller.addEventListener('playing', playing, true);
26 run('controller.play()'); 26 run('controller.play()');
27 } 27 }
28 28
29 function playing() { 29 function playing() {
30 consoleWrite("EVENT(playing)"); 30 consoleWrite("EVENT(playing)");
31 controller.removeEventListener('playing', playing, true); 31 controller.removeEventListener('playing', playing, true);
32 testExpected('controller.paused', false); 32 testExpected('controller.paused', false);
33 controller.addEventListener('ended', ended, true); 33 controller.addEventListener('ended', ended, true);
34 run('controller.currentTime = 5'); 34 run('controller.currentTime = 5');
35 testExpected('controller.currentTime', 5);
35 testExpected('video.currentTime', 5); 36 testExpected('video.currentTime', 5);
36 testExpected('video2.currentTime', 5); 37 testExpected('video2.currentTime', 5);
37 } 38 }
38 39
39 function ended() { 40 function ended() {
40 consoleWrite("EVENT(ended)"); 41 consoleWrite("EVENT(ended)");
41 controller.removeEventListener('ended', ended, true); 42 controller.removeEventListener('ended', ended, true);
42 endTest(); 43 endTest();
43 } 44 }
44 </script> 45 </script>
45 </head> 46 </head>
46 <body onload="start()"> 47 <body onload="start()">
47 <video mediaGroup="group" controls></video> 48 <video mediaGroup="group" controls></video>
48 <video mediaGroup="group" controls></video> 49 <video mediaGroup="group" controls></video>
49 </body> 50 </body>
50 </html> 51 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-playback-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698