diff options
Diffstat (limited to 'browser/components/enterprisepolicies/tests/xpcshell')
-rw-r--r-- | browser/components/enterprisepolicies/tests/xpcshell/test_policy_search_engine.js | 2 | ||||
-rw-r--r-- | browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/browser/components/enterprisepolicies/tests/xpcshell/test_policy_search_engine.js b/browser/components/enterprisepolicies/tests/xpcshell/test_policy_search_engine.js index 5c602442f2..c8eb29982d 100644 --- a/browser/components/enterprisepolicies/tests/xpcshell/test_policy_search_engine.js +++ b/browser/components/enterprisepolicies/tests/xpcshell/test_policy_search_engine.js @@ -189,7 +189,7 @@ add_task(async function test_install_and_remove() { Assert.notEqual(engine, null, "Specified search engine should be installed"); Assert.equal( - engine.wrappedJSObject.getIconURL(), + await engine.wrappedJSObject.getIconURL(), iconURL, "Icon should be present" ); diff --git a/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js b/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js index 8ef8b831ef..82caee16a7 100644 --- a/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js +++ b/browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js @@ -1032,6 +1032,19 @@ const POLICIES_TESTS = [ "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features": true, }, }, + + // POLICY: AutofillAddressEnabled, AutofillCreditCardEnabled + + { + policies: { + AutofillAddressEnabled: false, + AutofillCreditCardEnabled: false, + }, + lockedPrefs: { + "extensions.formautofill.addresses.enabled": false, + "extensions.formautofill.creditCards.enabled": false, + }, + }, ]; add_task(async function test_policy_simple_prefs() { |