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..9faf2d9d38aa0ffdb7fc25cab8f67573be0e1e88 |
--- /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 controls mediaGroup="group"></video> |
philipj_slow
2014/09/16 12:27:15
The controls attribute is probably not needed here
amogh.bihani
2014/09/16 13:46:01
Done.
|
+ <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); |
+ }); |
+ |
+ waitForEventAndEnd('seeked'); |
+ </script> |
+ </body> |
+</html> |