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

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: Fast-Forward to origin/master and rebase 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
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;
philipj_slow 2014/09/10 09:57:05 Add testExpected("video.currentTime", 1) after thi
amogh.bihani 2014/09/10 11:18:33 Done.
14
15 waitForEvent('loadedmetadata', function()
16 {
17 testExpected("video.currentTime", 1);
18 });
19
20 waitForEvent('seeked', function()
philipj_slow 2014/09/10 09:57:05 This can be simplified to waitForEventAndEnd("seek
amogh.bihani 2014/09/10 11:18:33 Done.
21 {
22 endTest();
23 });
24 }
25
26 window.addEventListener('load', onWindowLoad, false);
27 </script>
28 </head>
29 <body>
30 <video controls id="video"></video>
31 <p>Test currentTime values when setting while HAVE_NOTHING.</p>
32 <br/>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698