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

Unified Diff: LayoutTests/media/video-currentTime-before-have-metadata.html

Issue 517593003: Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/video-currentTime-before-have-metadata-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-currentTime-before-have-metadata.html
diff --git a/LayoutTests/media/video-currentTime-before-have-metadata.html b/LayoutTests/media/video-currentTime-before-have-metadata.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e675cecc3d57634dc48f2eaa240e9cbbadfc357
--- /dev/null
+++ b/LayoutTests/media/video-currentTime-before-have-metadata.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src=media-file.js></script>
+ <script src=video-test.js></script>
+ <script>
+ function onWindowLoad(e)
+ {
+ video = document.getElementById('video');
+
+ video.src = findMediaFile("video", "content/test");
+ testExpected("video.currentTime", 0);
+ video.currentTime = 1;
+ testExpected("video.currentTime", 1);
+
+ waitForEvent('loadedmetadata', function()
+ {
+ testExpected("video.currentTime", 1);
+ });
+
+ waitForEventAndEnd('seeked');
+ }
+
+ window.addEventListener('load', onWindowLoad, false);
+ </script>
+ </head>
+ <body>
+ <video controls id="video"></video>
+ <p>Test currentTime values when setting while HAVE_NOTHING.</p>
+ <br/>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/video-currentTime-before-have-metadata-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698