blob: 8ddbce6e75560b4fbcce3b3c862acdffc1b258f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const url = "http://foo.com/folder/file?/.";
function run_test() {
var ios = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService);
var newURI = ios.newURI(url, null, null);
do_check_eq(newURI.spec, url);
do_check_eq(newURI.path, "/folder/file?/.");
do_check_eq(newURI.resolve("./file?/."), url);
}
|