Bug 1943761 - Add class alignment to the mozsearch analysis file. r=asuth
[gecko.git] / dom / tests / unit / test_xhr_init.js
blob0f7255806ec8a22fbfa3833c6f5bc993d7428bf1
1 function run_test() {
2 var x = new XMLHttpRequest({ mozAnon: true, mozSystem: false });
3 Assert.ok(x.mozAnon);
4 Assert.ok(x.mozSystem); // Because we're system principal
6 x = new XMLHttpRequest({ mozAnon: true });
7 Assert.ok(x.mozAnon);
8 Assert.ok(x.mozSystem);
10 x = new XMLHttpRequest();
11 Assert.ok(x.mozAnon);
12 Assert.ok(x.mozSystem);
14 Services.prefs.setBoolPref(
15 "network.fetch.systemDefaultsToOmittingCredentials",
16 false
18 x = new XMLHttpRequest();
19 Assert.ok(!x.mozAnon);
20 Assert.ok(x.mozSystem);