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..239501b0f927b03c7c582cf290b58efd54dedb67 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/video-force-preload-none-to-metadata-on-load.html |
@@ -0,0 +1,16 @@ |
+<!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> |
+async_test(function(t) { |
philipj_slow
2016/03/14 13:03:15
Since this doesn't have any async part, it can use
Srirama
2016/03/14 15:12:54
Done.
|
+ var video = document.querySelector('video'); |
+ video.src = findMediaFile('video', 'content/test'); |
+ assert_equals(internals.effectivePreloadType(video), internals.PRELOAD_NONE); |
+ video.load(); |
+ assert_equals(internals.effectivePreloadType(video), internals.PRELOAD_METADATA); |
+ t.done(); |
+}); |
+</script> |