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

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: 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
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..da6555e531eadb5192f0c928efcf1f6f95745aeb
--- /dev/null
+++ b/LayoutTests/media/media-controller-media-fragment-uri.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+ <head></head>
philipj_slow 2014/09/11 14:38:26 You don't need an empty <head>. If you like, don't
amogh.bihani 2014/09/12 11:02:23 Ummm... I was advised by srirama.m@ to add the <ht
philipj_slow 2014/09/16 12:27:15 In the style of an existing test is OK. I happen t
+ <body>
+ <video controls mediaGroup="group"></video>
+ <video controls 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);
+ });
+
+ waitForEvent('seeked');
philipj_slow 2014/09/11 14:38:26 This test is timing out, should use waitForEventAn
amogh.bihani 2014/09/12 11:02:23 Done.
+ </script>
+ <p>Test currentTime of media controller when one of the element has initial start time greater than 0.</p>
philipj_slow 2014/09/11 14:38:28 Please move this description to the top, or <title
amogh.bihani 2014/09/12 11:02:23 Done.
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698