1 var EXPORTED_SYMBOLS = ["checkFromJSM"];
3 function checkFromJSM(ok, is) {
4 var url = new URL("http://www.example.com");
5 is(url.href, "http://www.example.com/", "JSM should have URL");
7 var url2 = new URL("/foobar", url);
10 "http://www.example.com/foobar",
11 "JSM should have URL - based on another URL"
14 var blob = new Blob(["a"]);
15 url = URL.createObjectURL(blob);
16 ok(url, "URL is created!");
20 is(u.origin, "null", "Url doesn't have an origin if created in a JSM");
22 URL.revokeObjectURL(url);
23 ok(true, "URL is revoked");