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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-currentTime-before-have-metadata.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) --> 6 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 7 <script src=video-test.js></script>
8 <script> 8 <script>
9 function onWindowLoad(e) 9 function onWindowLoad(e)
10 { 10 {
11 video = document.getElementById('video'); 11 video = document.getElementById('video');
12 12
13 video.src = findMediaFile("video", "content/test"); 13 video.src = findMediaFile("video", "content/test");
14 testExpected("video.currentTime", 0); 14 testExpected("video.currentTime", 0);
15 video.currentTime = 1; 15 video.currentTime = 1;
16 testExpected("video.currentTime", 1); 16 testExpected("video.currentTime", 1);
17 17
18 waitForEvent('loadedmetadata', function() 18 waitForEvent('loadedmetadata', function()
19 { 19 {
20 testExpected("video.currentTime", 1); 20 testExpected("video.currentTime", 1);
21 }); 21 });
22 22
23 waitForEventAndEnd('seeked'); 23 waitForEventAndEnd('seeked');
24 } 24 }
25 25
26 window.addEventListener('load', onWindowLoad, false); 26 window.addEventListener('load', onWindowLoad, false);
27 </script> 27 </script>
28 </head> 28 </head>
29 <body> 29 <body>
30 <video controls id="video"></video> 30 <video controls id="video"></video>
31 <p>Test currentTime values when setting while HAVE_NOTHING.</p> 31 <p>Test currentTime values when setting while HAVE_NOTHING.</p>
32 <br/> 32 <br/>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698