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

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-controller-unpause.html

Issue 1373423003: Remove MediaController (already diabled by REF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update web-platform-tests expectations Created 5 years, 2 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
6
7 <script>
8 var controller;
9 var video2;
10
11 function start()
12 {
13 var videos = document.getElementsByTagName('video');
14 video = videos[0];
15 video2 = videos[1];
16 run('controller = video.controller');
17 controller.addEventListener('canplaythrough', canplaythrough, true);
18 var src = findMediaFile('video', 'content/test');
19 video.src = src;
20 video2.src = src;
21 }
22
23 function canplaythrough()
24 {
25 consoleWrite("EVENT(canplaythrough)");
26 controller.removeEventListener('canplaythrough', canplaythrough, tru e);
27 controller.addEventListener('pause', pause, true);
28 run('controller.pause()');
29 }
30
31 function pause() {
32 consoleWrite("EVENT(pause)");
33 controller.removeEventListener('pause', pause, true);
34 controller.addEventListener('play', play, true);
35 run('controller.unpause()');
36 }
37
38 function play()
39 {
40 consoleWrite('EVENT(play)');
41 controller.removeEventListener('play', play, true);
42 testExpected('controller.playbackState', 'waiting');
43 controller.addEventListener('playing', playing, true);
44 run('controller.play()');
45 }
46
47 function playing()
48 {
49 consoleWrite("EVENT(playing)");
50 controller.removeEventListener('playing', playing, true);
51 endTest();
52 }
53 </script>
54 </head>
55 <body onload="start()">
56 <video mediaGroup="group" controls></video>
57 <video mediaGroup="group" controls></video>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698