OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test behavior when seeking to the duration and the playback rate
equals 0.</title> | 4 <title>Test behavior when seeking to the duration and the playback rate
equals 0.</title> |
5 <script src="media-file.js"></script> | 5 <script src="media-file.js"></script> |
6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
7 (Please avoid writing new tests using video-test.js) --> | 7 (Please avoid writing new tests using video-test.js) --> |
8 <script src="video-test.js"></script> | 8 <script src="video-test.js"></script> |
9 | 9 |
10 <script> | 10 <script> |
11 function onLoad() | 11 function onLoad() |
12 { | 12 { |
13 findMediaElement(); | 13 findMediaElement(); |
14 video.src = findMediaFile("video", "content/test"); | 14 video.src = findMediaFile("video", "content/test"); |
15 video.load(); | 15 video.load(); |
16 waitForEvent("seeking"); | 16 waitForEvent("seeking"); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 testExpected("video.currentTime", 0); | 51 testExpected("video.currentTime", 0); |
52 endTest(); | 52 endTest(); |
53 } | 53 } |
54 } | 54 } |
55 </script> | 55 </script> |
56 </head> | 56 </head> |
57 <body onload="onLoad()"> | 57 <body onload="onLoad()"> |
58 <video id="v" preload="metadata"></video> | 58 <video id="v" preload="metadata"></video> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |