Bug 1539614 [wpt PR 16077] - HTML: move textarea tests together, a=testonly
[gecko.git] / testing / web-platform / tests / media-source / URL-createObjectURL.html
blobda82806349a7931cc63593a150a2eeed29e9f082
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset='utf-8'>
5 <title>URL.createObjectURL(mediaSource)</title>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 test(function() {
13 var mediaSource = new MediaSource();
14 var url = window.URL.createObjectURL(mediaSource);
15 assert_true(url != null);
16 assert_true(url.match(/^blob:.+/) != null);
17 }, "URL.createObjectURL(mediaSource) should return a unique Blob URI.");
18 </script>
19 </body>
20 </html>