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> |