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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
6 <script>
7 function onWindowLoad(e)
8 {
9 video = document.getElementById('video');
10
11 video.src = findMediaFile("video", "content/test");
12 testExpected("video.currentTime", 0);
13 video.currentTime = 1;
14 testExpected("video.currentTime", 1);
15
16 waitForEvent('loadedmetadata', function()
17 {
18 testExpected("video.currentTime", 1);
19 });
20
21 waitForEventAndEnd('seeked');
22 }
23
24 window.addEventListener('load', onWindowLoad, false);
25 </script>
26 </head>
27 <body>
28 <video controls id="video"></video>
29 <p>Test currentTime values when setting while HAVE_NOTHING.</p>
30 <br/>
31 </body>
32 </html>
OLDNEW
« 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