OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 | 3 |
4 <video loop controls></video> | 4 <video loop controls></video> |
5 | 5 |
6 <p>Test that seeking video with no 'src' attribute sets default playback sta
rt position to that time.</p> | 6 <p>Test that seeking video with no 'src' attribute sets default playback sta
rt position to that time.</p> |
7 | 7 |
| 8 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 9 (Please avoid writing new tests using video-test.js) --> |
8 <script src=video-test.js></script> | 10 <script src=video-test.js></script> |
9 <script> | 11 <script> |
10 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); | 12 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); |
11 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); | 13 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); |
12 video.currentTime = 1.1; | 14 video.currentTime = 1.1; |
13 testExpected("video.currentTime", 1.1); | 15 testExpected("video.currentTime", 1.1); |
14 endTest(); | 16 endTest(); |
15 </script> | 17 </script> |
16 | 18 |
17 </body> | 19 </body> |
18 </html> | 20 </html> |
OLD | NEW |