mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Bug 1449173: Remove redundant compat checking test. r=aswan DONTBUILD for removal of release-only test
--HG-- extra : rebase_source : 28abd5024df09d0cd1e601b1b208ed23b243a1e1 extra : amend_source : dec81ce09c555a6f2d6b003aab93a62bbd950641
This commit is contained in:
parent
a5af0144f4
commit
3817d459fc
@ -1,59 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
const ADDON = "test_bug521905";
|
||||
const ID = "bug521905@tests.mozilla.org";
|
||||
|
||||
// Disables security checking our updates which haven't been signed
|
||||
Services.prefs.setBoolPref("extensions.checkUpdateSecurity", false);
|
||||
|
||||
function run_test() {
|
||||
// This test is only relevant on builds where the version is included in the
|
||||
// checkCompatibility preference name
|
||||
if (isNightlyChannel()) {
|
||||
return;
|
||||
}
|
||||
|
||||
do_test_pending();
|
||||
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2.0pre", "2");
|
||||
|
||||
startupManager();
|
||||
AddonManager.checkCompatibility = false;
|
||||
|
||||
installAllFiles([do_get_addon(ADDON)], function() {
|
||||
restartManager();
|
||||
|
||||
AddonManager.getAddonByID(ID, function(addon) {
|
||||
Assert.notEqual(addon, null);
|
||||
Assert.ok(addon.isActive);
|
||||
|
||||
executeSoon(run_test_1);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function run_test_1() {
|
||||
Services.prefs.setBoolPref("extensions.checkCompatibility.2.0pre", true);
|
||||
|
||||
restartManager();
|
||||
AddonManager.getAddonByID(ID, function(addon) {
|
||||
Assert.notEqual(addon, null);
|
||||
Assert.ok(!addon.isActive);
|
||||
|
||||
executeSoon(run_test_2);
|
||||
});
|
||||
}
|
||||
|
||||
function run_test_2() {
|
||||
Services.prefs.setBoolPref("extensions.checkCompatibility.2.0p", false);
|
||||
|
||||
restartManager();
|
||||
AddonManager.getAddonByID(ID, function(addon) {
|
||||
Assert.notEqual(addon, null);
|
||||
Assert.ok(!addon.isActive);
|
||||
|
||||
executeSoon(do_test_finished);
|
||||
});
|
||||
}
|
@ -95,7 +95,6 @@ tags = blocklist
|
||||
# Bug 676992: test consistently hangs on Android
|
||||
skip-if = os == "android"
|
||||
tags = blocklist
|
||||
[test_bug521905.js]
|
||||
[test_bug566626.js]
|
||||
[test_bug567184.js]
|
||||
[test_bug569138.js]
|
||||
|
Loading…
Reference in New Issue
Block a user