OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="media-file.js"></script> | 3 <script src="media-file.js"></script> |
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
5 (Please avoid writing new tests using video-test.js) --> | 5 (Please avoid writing new tests using video-test.js) --> |
6 <script src="video-test.js"></script> | 6 <script src="video-test.js"></script> |
7 <script> | 7 <script> |
8 function start() | 8 function start() |
9 { | 9 { |
10 findMediaElement(); | 10 findMediaElement(); |
11 video.src = findMediaFile("video", "content/test"); | 11 video.src = findMediaFile("video", "content/test"); |
12 | 12 |
13 testExpected("video.preload", "none"); | 13 testExpected("video.preload", "none"); |
14 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); | 14 testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING); |
(...skipping 10 matching lines...) Expand all Loading... |
25 } | 25 } |
26 </script> | 26 </script> |
27 </head> | 27 </head> |
28 | 28 |
29 <body> | 29 <body> |
30 <video preload="none"></video> | 30 <video preload="none"></video> |
31 <p>Test that an explicit load() to a media element whose preload is set
to "none" still loads the video.</p> | 31 <p>Test that an explicit load() to a media element whose preload is set
to "none" still loads the video.</p> |
32 <script>start();</script> | 32 <script>start();</script> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |