Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
-
CI results over the last 22 days3,479Runs99.97%Pass0Failures1Timeouts0Crashes0Skips
Runs with issues per day (up to 0.3%) Sep 14Oct 5- Timeouts
- This test runs only with pattern: os != 'android'
- Manifest: toolkit/components/enterprisepolicies/tests/xpcshell/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function test_null_policy_value() {
await setupPolicyEngineWithJson({
policies: {
DisableAppUpdate: null,
DisableSystemAddonUpdate: true,
},
});
equal(
Services.policies.status,
Ci.nsIEnterprisePolicies.ACTIVE,
"Engine is active"
);
let activePolicies = Services.policies.getActivePolicies();
ok(
"DisableSystemAddonUpdate" in activePolicies,
"The policy next to the null-valued one was still applied"
);
ok(
!("DisableAppUpdate" in activePolicies),
"The null-valued policy was not applied"
);
});