blob: 86d8bdc3739d4068ec52c4ebe0869b37613976be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"use strict";
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);
Assert.equal(newURI.spec, url);
Assert.equal(newURI.pathQueryRef, "/folder/file?/.");
Assert.equal(newURI.resolve("./file?/."), url);
}
|