Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / netwerk / test / unit / test_bug376844.js
blobea9fab2e4a2bec595aaaee985c263321b0184c27
1 const Cc = Components.classes;
2 const Ci = Components.interfaces;
4 const testURLs = [
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"]
15 function run_test() {
16 var ioServ =
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]);