tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_observed_prefs.js (379B)


      1 function isParentProcess() {
      2  return Services.appinfo.processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
      3 }
      4 
      5 function run_test() {
      6  if (!isParentProcess()) {
      7    const pb = Services.prefs;
      8    Assert.equal(pb.getBoolPref("Test.IPC.bool.new"), true);
      9    Assert.equal(pb.getIntPref("Test.IPC.int.new"), 23);
     10    Assert.equal(pb.getCharPref("Test.IPC.char.new"), "hey");
     11  }
     12 }