Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / netwerk / test / unit / test_bug429347.js
blob166358149841b1eb4e3600f1535221f8d58423d7
1 const Cc = Components.classes;
2 const Ci = Components.interfaces;
3 const Cr = Components.results;
5 function run_test() {
6 var ios = Cc["@mozilla.org/network/io-service;1"].
7 getService(Ci.nsIIOService);
9 var uri1 = ios.newURI("http://example.com#bar", null, null);
10 var uri2 = ios.newURI("http://example.com/#bar", null, null);
11 do_check_true(uri1.equals(uri2));
13 uri1.spec = "http://example.com?bar";
14 uri2.spec = "http://example.com/?bar";
15 do_check_true(uri1.equals(uri2));
17 uri1.spec = "http://example.com;bar";
18 uri2.spec = "http://example.com/;bar";
19 do_check_true(uri1.equals(uri2));
21 uri1.spec = "http://example.com#";
22 uri2.spec = "http://example.com/#";
23 do_check_true(uri1.equals(uri2));
25 uri1.spec = "http://example.com?";
26 uri2.spec = "http://example.com/?";
27 do_check_true(uri1.equals(uri2));
29 uri1.spec = "http://example.com;";
30 uri2.spec = "http://example.com/;";
31 do_check_true(uri1.equals(uri2));
33 uri1.spec = "http://example.com";
34 uri2.spec = "http://example.com/";
35 do_check_true(uri1.equals(uri2));