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

Unified Diff: LayoutTests/fast/media/media-disable-crash.html

Issue 23684014: Crash direct wrapping media element when media isn't enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months 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 | LayoutTests/fast/media/media-disable-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/media/media-disable-crash.html
diff --git a/LayoutTests/fast/media/media-disable-crash.html b/LayoutTests/fast/media/media-disable-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..8fcb6422226bf27012a0aca1b1b634332158fa47
--- /dev/null
+++ b/LayoutTests/fast/media/media-disable-crash.html
@@ -0,0 +1,16 @@
+<html>
+<script>
+function runTest() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ if (window.internals)
+ window.internals.settings.setMediaEnabled(false);
+
+ var audioElement = document.createElement("audio");
+}
+</script>
+<body onload="runTest()">
+The test passes if it doesn't crash.
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/media/media-disable-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698