Bug 1192925: Test that system add-ons are marked as un-uninstallable and un-upgradable. r=rhelmer

This commit is contained in:
Dave Townsend 2015-09-11 10:51:06 -07:00
parent 55b45bac8b
commit a3e4fc96aa

View File

@ -39,6 +39,8 @@ function* check_installed(inProfile, ...versions) {
do_check_eq(addon.version, versions[i]);
do_check_true(addon.isActive);
do_check_false(addon.foreignInstall);
do_check_false(hasFlag(addon.permissions, AddonManager.PERM_CAN_UPGRADE));
do_check_false(hasFlag(addon.permissions, AddonManager.PERM_CAN_UNINSTALL));
// Verify the add-ons file is in the right place
let file = expectedDir.clone();