зеркало из https://github.com/mozilla/pjs.git
Bug 579540: Add better cleanup to browser_bug553455.js. r=gavin, a=tests
This commit is contained in:
Родитель
a35e10c867
Коммит
435e0884b7
|
@ -608,6 +608,15 @@ function test() {
|
|||
Services.obs.addObserver(XPInstallObserver, "addon-install-complete", false);
|
||||
|
||||
registerCleanupFunction(function() {
|
||||
// Make sure no more test parts run in case we were timed out
|
||||
TESTS = [];
|
||||
|
||||
AddonManager.getAllInstalls(function(aInstalls) {
|
||||
aInstalls.forEach(function(aInstall) {
|
||||
aInstall.cancel();
|
||||
});
|
||||
});
|
||||
|
||||
Services.prefs.clearUserPref("extensions.logging.enabled");
|
||||
|
||||
Services.obs.removeObserver(XPInstallObserver, "addon-install-started");
|
||||
|
|
Загрузка…
Ссылка в новой задаче