2 const ios = Components.classes["@mozilla.org/network/io-service;1"]
3 .getService(Components.interfaces.nsIIOService);
5 var base = ios.newURI("http://localhost/bug379034/index.html", null, null);
7 var uri = ios.newURI("http:a.html", null, base);
8 do_check_eq(uri.spec, "http://localhost/bug379034/a.html");
10 uri = ios.newURI("HtTp:b.html", null, base);
11 do_check_eq(uri.spec, "http://localhost/bug379034/b.html");
13 uri = ios.newURI("https:c.html", null, base);
14 do_check_eq(uri.spec, "https://c.html/");
16 uri = ios.newURI("./https:d.html", null, base);
17 do_check_eq(uri.spec, "http://localhost/bug379034/https:d.html");