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