summaryrefslogtreecommitdiffstats
path: root/modules/libpref/test/unit_ipc/test_initial_prefs.js
blob: 9c5e8991cf314b89b6bd8b76d6d891211bd9d1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function isParentProcess() {
  return Services.appinfo.processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
}

function run_test() {
  if (!isParentProcess()) {
    const pb = Services.prefs;
    pb.setBoolPref("Test.IPC.bool", true);
    pb.setIntPref("Test.IPC.int", 23);
    pb.setCharPref("Test.IPC.char", "hey");

    run_test_in_child("test_existing_prefs.js");
  }
}