зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in enterprise policy tests r=Felipe
MozReview-Commit-ID: HfPvQjmZ7mo --HG-- extra : rebase_source : f8ca481f4c43479c8c2ffa334ae3edb4f8e49e77 extra : source : ecb7aa38d2bded7dcb263f93b365f65e35d0dd5e
This commit is contained in:
Родитель
35d8c30dbb
Коммит
bdfa74d56f
|
@ -11,6 +11,8 @@ var updateService = Cc["@mozilla.org/updates/update-service;1"].
|
|||
// policy is applied needs to occur in a different test since the policy does
|
||||
// not properly take effect unless it is applied during application startup.
|
||||
add_task(async function test_updates_pre_policy() {
|
||||
await SpecialPowers.pushPrefEnv({"set": [["app.update.disabledForTesting", false]]});
|
||||
|
||||
is(Services.policies.isAllowed("appUpdate"), true,
|
||||
"Since no policies have been set, appUpdate should be allowed by default");
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
prefs =
|
||||
app.update.enabled=true
|
||||
app.update.disabledForTesting=false
|
||||
app.update.auto=true
|
||||
browser.policies.alternatePath='<test-root>/browser/components/enterprisepolicies/tests/browser/disable_app_update/config_disable_app_update.json'
|
||||
support-files =
|
||||
|
|
|
@ -18,10 +18,8 @@ add_task(async function test_update_preferences_ui() {
|
|||
|
||||
await ContentTask.spawn(tab.linkedBrowser, null, async function() {
|
||||
let updateRadioGroup = content.document.getElementById("updateRadioGroup");
|
||||
is(updateRadioGroup.disabled, true,
|
||||
is(updateRadioGroup.hidden, true,
|
||||
"Update choices should be diabled when app update is locked by policy");
|
||||
is(updateRadioGroup.value, "manual",
|
||||
"Update choice should be set to \"manual\" when app update is disabled by policy");
|
||||
});
|
||||
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
|
Загрузка…
Ссылка в новой задаче