summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/media-source/URL-createObjectURL-null.html
blob: a4177dd846be89c4f9118b1ba3ef9a72eb2a0ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(new TypeError(), function() {
        window.URL.createObjectURL(null);
    });
}, "URL.createObjectURL(null)");
</script>
</body>
</html>