summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/media-source/URL-createObjectURL-null.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/media-source/URL-createObjectURL-null.html')
-rw-r--r--testing/web-platform/tests/media-source/URL-createObjectURL-null.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/media-source/URL-createObjectURL-null.html b/testing/web-platform/tests/media-source/URL-createObjectURL-null.html
new file mode 100644
index 0000000000..f2f973a776
--- /dev/null
+++ b/testing/web-platform/tests/media-source/URL-createObjectURL-null.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset='utf-8'>
+ <title>URL.createObjectURL(null)</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+test(function() {
+ assert_throws_js(TypeError, function() {
+ window.URL.createObjectURL(null);
+ });
+}, "URL.createObjectURL(null)");
+</script>
+</body>
+</html>