mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
12 lines
330 B
JavaScript
12 lines
330 B
JavaScript
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);
|
|
}
|