OLD | NEW |
1 <html> | 1 <!DOCTYPE HTML> |
2 <head> | 2 <title>Test that accessing member of a non loaded video works.</title> |
3 <title>Test that accessing member of a non loaded video works.</title> | 3 <script src="../resources/testharness.js"></script> |
4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 4 <script src="../resources/testharnessreport.js"></script> |
5 (Please avoid writing new tests using video-test.js) --> | 5 <video></video> |
6 <script src=video-test.js></script> | 6 <script> |
7 <script> | 7 test(function() { |
8 function test() | 8 var video = document.querySelector("video"); |
9 { | 9 assert_equals(video.played.length, 0); |
10 findMediaElement(); | 10 assert_equals(video.buffered.length, 0); |
11 | 11 assert_equals(video.seekable.length, 0); |
12 run("video.played"); | 12 assert_equals(video.volume, 1); |
13 run("video.buffered"); | 13 }); |
14 run("video.seekable"); | 14 </script> |
15 run("video.volume"); | |
16 consoleWrite("SUCCESS"); | |
17 endTest(); | |
18 } | |
19 </script> | |
20 </head> | |
21 | |
22 <body onload="test()"> | |
23 | |
24 <video controls></video> | |
25 <p>Test that accessing member of a non loaded video works.</p> | |
26 | |
27 </body> | |
28 </html> | |
OLD | NEW |