OLD | NEW |
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 Loading... |
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> |
OLD | NEW |