diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:27 +0000 |
commit | f3bcaf9f88aad2c423ebcd61121562f9834187d4 (patch) | |
tree | f22238c29b57707b645a350940e3e9bdf3ce1f5d /browser/components/enterprisepolicies/tests | |
parent | Adding debian version 115.7.0esr-1~deb12u1. (diff) | |
download | firefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.tar.xz firefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.zip |
Merging upstream version 115.8.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/enterprisepolicies/tests')
-rw-r--r-- | browser/components/enterprisepolicies/tests/xpcshell/head.js | 5 | ||||
-rw-r--r-- | browser/components/enterprisepolicies/tests/xpcshell/test_preferences.js | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/browser/components/enterprisepolicies/tests/xpcshell/head.js b/browser/components/enterprisepolicies/tests/xpcshell/head.js index 0680e7ece7..1c7c8844fa 100644 --- a/browser/components/enterprisepolicies/tests/xpcshell/head.js +++ b/browser/components/enterprisepolicies/tests/xpcshell/head.js @@ -132,6 +132,11 @@ function checkDefaultPref(prefName, prefValue) { Services.prefs.PREF_INVALID, `Pref ${prefName} is set on the default branch` ); + strictEqual( + Preferences.get(prefName), + prefValue, + `Pref ${prefName} has the correct value` + ); } function checkUnsetPref(prefName) { diff --git a/browser/components/enterprisepolicies/tests/xpcshell/test_preferences.js b/browser/components/enterprisepolicies/tests/xpcshell/test_preferences.js index 44b77ddc63..eb13fe24ae 100644 --- a/browser/components/enterprisepolicies/tests/xpcshell/test_preferences.js +++ b/browser/components/enterprisepolicies/tests/xpcshell/test_preferences.js @@ -64,12 +64,23 @@ const NEW_PREFERENCES_TESTS = [ Value: 11, Status: "user", }, + "browser.policies.test.default.number.implicit": { + Value: 0, + Status: "default", + }, + "browser.policies.test.default.number.explicit": { + Value: 0, + Status: "default", + Type: "number", + }, }, }, defaultPrefs: { "browser.policies.test.default.boolean": true, "browser.policies.test.default.string": "string", "browser.policies.test.default.number": 11, + "browser.policies.test.default.number.implicit": false, + "browser.policies.test.default.number.explicit": 0, }, lockedPrefs: { "browser.policies.test.locked.boolean": true, |