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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/media-controller-media-fragment-uri.html
diff --git a/LayoutTests/media/media-controller-media-fragment-uri.html b/LayoutTests/media/media-controller-media-fragment-uri.html
new file mode 100644
index 0000000000000000000000000000000000000000..973d3200793f4e49fa3426e766e61f3d29181d02
--- /dev/null
+++ b/LayoutTests/media/media-controller-media-fragment-uri.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test currentTime of media controller when one of the element has initial start time greater than 0.</title>
+ </head>
+ <body>
+ <video mediaGroup="group"></video>
+ <video mediaGroup="group"></video>
+ <script src=media-file.js></script>
+ <script src=video-test.js></script>
+ <script>
+ videos = document.getElementsByTagName('video');
+ video = videos[0];
+ video2 = videos[1];
+ controller = video.controller;
+
+ var src = findMediaFile("video", "content/test");
+ video.src = src + "#t=2";
+ video2.src = src;
+ testExpected("video.currentTime", 0);
+ testExpected("video2.currentTime", 0);
+
+ controller.addEventListener("loadedmetadata", function()
+ {
+ testExpected("video.currentTime", 2);
+ testExpected("video2.currentTime", 2);
+ testExpected("controller.currentTime", 2);
+ });
+
+ waitForEventAndEnd('seeked');
+ </script>
+ </body>
+</html>
« 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