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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-seek-by-small-increment.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 <!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
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 7 <script src=video-test.js></script>
6 8
7 <script> 9 <script>
8 var seekedEventCount = 0; 10 var seekedEventCount = 0;
9 var increment = 0; 11 var increment = 0;
10 12
11 function seekIncrement() 13 function seekIncrement()
12 { 14 {
13 // We want to verify that seeking by an increment smaller than t he test movie's time scale 15 // We want to verify that seeking by an increment smaller than t he test movie's time scale
14 // (the smallest unit of time in that file) succeeds. test.mp4 h as a time scale of 2500, 16 // (the smallest unit of time in that file) succeeds. test.mp4 h as a time scale of 2500,
15 // 0.0004 seconds, so start with that and decrease by half each time. 17 // 0.0004 seconds, so start with that and decrease by half each time.
16 if (!increment) 18 if (!increment)
17 increment = 0.0004; 19 increment = 0.0004;
18 else 20 else
19 increment /= 2; 21 increment /= 2;
20 return increment; 22 return increment;
21 } 23 }
22 24
23 function seeked() 25 function seeked()
24 { 26 {
(...skipping 24 matching lines...) Expand all
49 waitForEvent('pause'); 51 waitForEvent('pause');
50 } 52 }
51 </script> 53 </script>
52 </head> 54 </head>
53 <body> 55 <body>
54 <video controls></video> 56 <video controls></video>
55 <p>Test seeking by very small increments.</p> 57 <p>Test seeking by very small increments.</p>
56 <script>start()</script> 58 <script>start()</script>
57 </body> 59 </body>
58 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698