1 const Cc
= Components
.classes
;
2 const Ci
= Components
.interfaces
;
5 ["http://example.com/<", "http://example.com/%3C"],
6 ["http://example.com/>", "http://example.com/%3E"],
7 ["http://example.com/'", "http://example.com/%27"],
8 ["http://example.com/\"", "http://example.com/%22"],
9 ["http://example.com/?<", "http://example.com/?%3C"],
10 ["http://example.com/?>", "http://example.com/?%3E"],
11 ["http://example.com/?'", "http://example.com/?%27"],
12 ["http://example.com/?\"", "http://example.com/?%22"]
17 Cc
["@mozilla.org/network/io-service;1"].
18 getService(Ci
.nsIIOService
);
20 for (var i
= 0; i
< testURLs
.length
; i
++) {
21 var uri
= ioServ
.newURI(testURLs
[i
][0], null, null);
22 do_check_eq(uri
.spec
, testURLs
[i
][1]);