Index: third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html |
diff --git a/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html b/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..22fdd44b81647608eff89dc39395b4561574a192 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<title>Setting preload=metadata after calling load() w/ preload=none</title> |
+<script src="media-file.js"></script> |
+<p>PASS if no crash in Debug.</p> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+var video = document.createElement('video'); |
+video.preload = "none"; |
+video.src = findMediaFile('video', 'content/test'); |
+video.load(); |
+video.preload = "metadata"; |
+</script> |