Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / netwerk / test / unit / test_bug379034.js
blob0177e904c54172da17b5b73a729e86693fdf831c
1 function run_test() {
2   const ios = Components.classes["@mozilla.org/network/io-service;1"]
3                         .getService(Components.interfaces.nsIIOService);
5   var base = ios.newURI("http://localhost/bug379034/index.html", null, null);
7   var uri = ios.newURI("http:a.html", null, base);
8   do_check_eq(uri.spec, "http://localhost/bug379034/a.html");
10   uri = ios.newURI("HtTp:b.html", null, base);
11   do_check_eq(uri.spec, "http://localhost/bug379034/b.html");
13   uri = ios.newURI("https:c.html", null, base);
14   do_check_eq(uri.spec, "https://c.html/");
16   uri = ios.newURI("./https:d.html", null, base);
17   do_check_eq(uri.spec, "http://localhost/bug379034/https:d.html");