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

Side by Side Diff: LayoutTests/media/media-controller-media-fragment-uri.html

Issue 539103002: Seeking media fragment URI before loadeddata event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@HAVE_NOTHING
Patch Set: renaming test and addressing comments Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-media-fragment-uri-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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test currentTime of media controller when one of the element has initial start time greater than 0.</title>
5 </head>
6 <body>
7 <video mediaGroup="group"></video>
8 <video mediaGroup="group"></video>
9 <script src=media-file.js></script>
10 <script src=video-test.js></script>
11 <script>
12 videos = document.getElementsByTagName('video');
13 video = videos[0];
14 video2 = videos[1];
15 controller = video.controller;
16
17 var src = findMediaFile("video", "content/test");
18 video.src = src + "#t=2";
19 video2.src = src;
20 testExpected("video.currentTime", 0);
21 testExpected("video2.currentTime", 0);
22
23 controller.addEventListener("loadedmetadata", function()
24 {
25 testExpected("video.currentTime", 2);
26 testExpected("video2.currentTime", 2);
27 testExpected("controller.currentTime", 2);
28 });
29
30 waitForEventAndEnd('seeked');
31 </script>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/media-controller-media-fragment-uri-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698