summaryrefslogtreecommitdiffstats
path: root/extensions/pref/autoconfig/test/unit/autoconfig-all.cfg
blob: f636c3ec22150b1d893385bf22763ffc3c285708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// # don't remove this comment! (the first line is ignored by Mozilla)

// Verify this one has a user value
pref("_autoconfig_.test.userpref", "userpref");

// Verify this one has a default pref
defaultPref("_autoconfig_.test.defaultpref", "defaultpref");

// Verify this one is locked
lockPref("_autoconfig_.test.lockpref", "lockpref");

lockPref("_autoconfig_.test.unlockpref", "unlockpref");
// Verify this one is unlocked
unlockPref("_autoconfig_.test.unlockpref");

pref("_autoconfig_.test.clearpref", "clearpref");
// Verify this one has no value
clearPref("_autoconfig_.test.clearpref");

// Verify this one is set to the correct value
pref("_autoconfig_.test.getpref.query", "getpref");
pref("_autoconfig_.test.getpref", getPref("_autoconfig_.test.getpref.query"));

// Verify this one is set to the correct value
pref("_autoconfig_.test.getenv", getenv("AUTOCONFIG_TEST_GETENV"));

// Since we can't test displayError directly, verify that it
// exists and is a function
pref("_autoconfig_.test.displayerror", typeof(displayError));

// We are not getPrefBranch because it is being removed