Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash.html

Issue 1495533002: Robustify state-transitions in HTMLMediaElement::startDeferredLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectation. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-preload-none-to-metadata-after-load-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698