Index: third_party/WebKit/LayoutTests/media/video-force-preload-none-to-metadata-on-load.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-force-preload-none-to-metadata-on-load.html b/third_party/WebKit/LayoutTests/media/video-force-preload-none-to-metadata-on-load.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c7b1a3763873e8acd643b143ec84788f1566edf5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/video-force-preload-none-to-metadata-on-load.html |
@@ -0,0 +1,15 @@ |
+<!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> |
+<script src="media-file.js"></script> |
+<video preload="none"></video> |
+<script> |
+test(function() { |
+ var video = document.querySelector('video'); |
+ video.src = findMediaFile('video', 'content/test'); |
+ assert_equals(internals.effectivePreload(video), "none"); |
+ video.load(); |
+ assert_equals(internals.effectivePreload(video), "metadata"); |
+}); |
+</script> |