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

Side by Side Diff: LayoutTests/media/controls-timeline-with-controller.html

Issue 219283004: Remove what remains of MediaControllerInterface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: earliest possible position FIXME 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>media controls timeline with MediaController</title>
5 <script src="media-file.js"></script>
6 <script src="media-controls.js"></script>
7 <script src="video-test.js"></script>
8 </head>
9 <body>
10 <video controls></video>
11 <script>
12 findMediaElement();
13 video.controller = new MediaController();
14 video.src = findMediaFile("video", "content/test");
15 waitForEvent("loadedmetadata", function()
16 {
17 testExpected("video.controller.currentTime", 0);
18 testExpected("video.currentTime", 0);
19 testExpected("video.seeking", false);
20
21 // click the middle of the timeline
22 var coords = mediaControlsButtonCoordinates(video, "timeline");
23 eventSender.mouseMoveTo(coords[0], coords[1]);
24 eventSender.mouseDown();
25 eventSender.mouseUp();
26
27 testExpected("video.controller.currentTime / video.controller.du ration", 0.4, '>');
28 testExpected("video.controller.currentTime / video.controller.du ration", 0.6, '<');
29 testExpected("video.currentTime / video.duration", 0.4, '>');
30 testExpected("video.currentTime / video.duration", 0.6, '<');
31 testExpected("video.seeking", true);
32
33 endTest();
34 });
35 </script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/controls-timeline-expected.txt ('k') | LayoutTests/media/controls-timeline-with-controller-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698