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

Unified Diff: LayoutTests/media/video-currentTime-before-have-metadata-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
Index: LayoutTests/media/video-currentTime-before-have-metadata-media-fragment-uri.html
diff --git a/LayoutTests/media/video-currentTime-before-have-metadata-media-fragment-uri.html b/LayoutTests/media/video-currentTime-before-have-metadata-media-fragment-uri.html
new file mode 100644
index 0000000000000000000000000000000000000000..d81e843a388fdabc6a05217bae9ce628b197e2d0
--- /dev/null
+++ b/LayoutTests/media/video-currentTime-before-have-metadata-media-fragment-uri.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test currentTime values when setting while HAVE_NOTHING for media fragment URI.</title>
+ </head>
+ <body>
+ <video id="video"></video>
+ <script src=media-file.js></script>
+ <script src=video-test.js></script>
+ <script>
+ video = document.getElementById('video');
+
+ video.src = findMediaFile("video", "content/test") + "#t=2";
+ testExpected("video.currentTime", 0);
+ video.currentTime = 1;
+
+ waitForEvent('loadedmetadata', function()
+ {
+ testExpected("video.currentTime", 1);
+ });
+
+ waitForEventAndEnd('seeked');
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698