3 missing:
"fuel.fuel-test-missing",
4 dummy:
"fuel.fuel-test",
5 string:
"browser.active_color",
6 integer:
"permissions.default.image",
7 boolean:
"browser.blink_allowed"
13 is(itemValue,
"default",
"Check 'Application.prefs.getValue' for non-existing item");
20 is(itemValue,
"dummy",
"Check 'Application.prefs.getValue' for existing item");
25 is(itemValue,
"smarty",
"Check 'Application.prefs.getValue' for overwritten item");
30 is(itemValue,
"dummy2",
"Check 'Application.prefs.get().value' for existing item");
35 is(itemValue,
"default",
"Check 'Application.prefs.getValue' for reset pref");
47 is(val,
"default",
"Check non-existant string property for expected value");
51 is(val,
"#EE0000",
"Check existing string property for expected value");
56 is(val,
"#EF0000",
"Set existing string property");
60 is(type,
"String",
"Check 'Application.prefs.get().type' for string pref");
65 is(val,
"#EE0000",
"Reset existing string property");
70 ok(
Application.prefs.has(
testdata.integer),
"Check existing integer property for existance");
74 is(val, 0,
"Check non-existant integer property for expected value");
78 is(val, 1,
"Check existing integer property for expected value");
83 is(val, 0,
"Set existing integer property");
87 is(type,
"Number",
"Check 'Application.prefs.get().type' for integer pref");
92 is(val, 1,
"Reset existing integer property");
97 ok(
Application.prefs.has(
testdata.boolean),
"Check existing boolean property for existance");
101 ok(val,
"Check non-existant boolean property for expected value");
105 ok(val,
"Check existing boolean property for expected value");
110 ok(!val,
"Set existing boolean property");
114 is(type,
"Boolean",
"Check 'Application.prefs.get().type' for boolean pref");
119 ok(val,
"Reset existing string property for expected value");
123 ok(allPrefs.length >= 800,
"Check 'Application.prefs.all' for the right number of preferences");
124 ok(allPrefs[0].
name.length > 0,
"Check 'Application.prefs.all' for a valid name in the starting preference");
127 is(
Application.prefs.root,
"",
"Check the Application preference root");
130 ok(
Application.prefs.get(
"browser.shell.checkDefaultBrowser").modified,
"A single preference is marked as modified.");
131 ok(!
Application.prefs.get(
testdata.string).modified,
"A single preference is marked as not modified.");
135 ok(!pref.locked,
"A single preference should not be locked.");
138 ok(pref.locked,
"A single preference should be locked.");
141 prev.value =
"test value";
143 ok(
false,
"A locked preference could be modified.");
145 ok(
true,
"A locked preference should not be able to be modified.");
149 ok(!pref.locked,
"A single preference is unlocked.");
154 Application.prefs.setValue(
"fuel.fuel-test",
"change event");
158 is(evt.data,
testdata.dummy,
"Check 'Application.prefs.setValue' fired a change event");
167 Application.prefs.setValue(
"fuel.fuel-test",
"change event2");
171 is(evt.data,
testdata.dummy,
"Check 'Application.prefs.setValue' fired a change event for a single preference");
this _dialogInput val(dateText)
function onPrefChange2(evt)
function onPrefChangeDummy(evt)
function onPrefChange(evt)