blob: 2b5392b76fcc7f6b7b38fa65a9124c00eb4b3740 [file] [log] [blame]
<!DOCTYPE html>
<title>Test that loading a video element with preload "none" changes its effective preload to "metadata"</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<video preload="none"></video>
<script>
test(function() {
var video = document.querySelector('video');
video.src = 'content/test.ogv';
assert_equals(internals.effectivePreload(video), "none");
video.load();
assert_equals(internals.effectivePreload(video), "metadata");
});
</script>