3 <script src=
"media-file.js"></script>
4 <script src=
"video-test.js"></script>
9 video
.src
= findMediaFile("video", "content/test");
11 testExpected("video.preload", "none");
12 testExpected("video.readyState", HTMLMediaElement
.HAVE_NOTHING
);
13 waitForEventAndEnd('loadedmetadata');
15 // Wait 250ms before load()ing to make sure setting src does not kick off the load
16 // (i.e. preload=none should still be respected).
17 setTimeout(load
, 250);
21 testExpected("video.readyState", HTMLMediaElement
.HAVE_NOTHING
);
28 <video preload=
"none"></video>
29 <p>Test that an explicit load() to a media element whose preload is set to
"none" still loads the video.
</p>
30 <script>start();</script>