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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-seeking.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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 <video controls></video> 1 <video controls></video>
2 <p>Test that seeking attribute is true immediately after a seek, 2 <p>Test that seeking attribute is true immediately after a seek,
3 goes back to false when seeking completes, and that a 'seeked' event 3 goes back to false when seeking completes, and that a 'seeked' event
4 is fired for each seek 4 is fired for each seek
5 </p> 5 </p>
6 <script src=media-file.js></script> 6 <script src=media-file.js></script>
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
8 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 9 <script src=video-test.js></script>
8 <script> 10 <script>
9 11
10 var seekedCount = 0; 12 var seekedCount = 0;
11 13
12 function seeked() 14 function seeked()
13 { 15 {
14 ++seekedCount; 16 ++seekedCount;
15 consoleWrite(""); 17 consoleWrite("");
16 18
(...skipping 20 matching lines...) Expand all
37 run("video.currentTime = 0.5"); 39 run("video.currentTime = 0.5");
38 consoleWrite(""); 40 consoleWrite("");
39 } 41 }
40 42
41 waitForEvent('waiting' ); 43 waitForEvent('waiting' );
42 waitForEvent('seeked', seeked ); 44 waitForEvent('seeked', seeked );
43 waitForEventOnce('canplaythrough', canplaythrough); 45 waitForEventOnce('canplaythrough', canplaythrough);
44 46
45 video.src = findMediaFile("video", "content/test"); 47 video.src = findMediaFile("video", "content/test");
46 </script> 48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698