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

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-controller-time-constant.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 video;
10 var firstTime;
11 var secondTime;
12
13 function start() {
14 video = document.getElementById('video');
15 run('controller = video.controller');
16 controller.addEventListener('canplaythrough', canplaythrough, true);
17 var src = findMediaFile('video', 'content/test');
18 video.src = src;
19 }
20
21 function canplaythrough() {
22 consoleWrite("EVENT(canplaythrough)");
23 controller.removeEventListener('canplaythrough', canplaythrough, tru e);
24 run('video.play()');
25 controller.addEventListener('playing', playing, true);
26 run('controller.play()');
27 }
28
29 function playing() {
30 consoleWrite("EVENT(playing)");
31 controller.removeEventListener('playing', playing, true);
32 run('firstTime = controller.currentTime');
33 run('secondTime = controller.currentTime');
34 testExpected('firstTime - secondTime', 0);
35 endTest();
36 }
37 </script>
38 </head>
39 <body onload="start()">
40 <video id="video" mediaGroup="group" controls></video>
41 <div>This tests that currentTime is kept stable during script execution. </div>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698