зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315829
- Re-enable test_ext_runtime_onInstalled_and_onStartup.js r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D17489 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a792eb73a1
Коммит
71c8ed90e5
|
@ -21,7 +21,11 @@ AddonTestUtils.init(this);
|
|||
// Allow for unsigned addons.
|
||||
AddonTestUtils.overrideCertDB();
|
||||
|
||||
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
|
||||
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "42", "42");
|
||||
|
||||
// Ensure that the background page is automatically started after using
|
||||
// promiseStartupManager.
|
||||
Services.prefs.setBoolPref("extensions.webextensions.background-delayed-startup", false);
|
||||
|
||||
function background() {
|
||||
let onInstalledDetails = null;
|
||||
|
@ -169,7 +173,7 @@ add_task(async function test_should_fire_on_addon_update() {
|
|||
add_task(async function test_should_fire_on_browser_update() {
|
||||
const EXTENSION_ID = "test_runtime_on_installed_browser_update@tests.mozilla.org";
|
||||
|
||||
await promiseStartupManager();
|
||||
await promiseStartupManager("1");
|
||||
|
||||
let extension = ExtensionTestUtils.loadExtension({
|
||||
useAddonManager: "permanent",
|
||||
|
@ -193,8 +197,8 @@ add_task(async function test_should_fire_on_browser_update() {
|
|||
onInstalledReason: "install",
|
||||
});
|
||||
|
||||
// Restart the browser.
|
||||
await promiseRestartManager("1");
|
||||
|
||||
await extension.awaitStartup();
|
||||
|
||||
await expectEvents(extension, {
|
||||
|
|
|
@ -93,7 +93,6 @@ skip-if = os == "android" && debug
|
|||
[test_ext_runtime_getPlatformInfo.js]
|
||||
[test_ext_runtime_id.js]
|
||||
[test_ext_runtime_onInstalled_and_onStartup.js]
|
||||
skip-if = true # bug 1315829
|
||||
[test_ext_runtime_sendMessage.js]
|
||||
[test_ext_runtime_sendMessage_errors.js]
|
||||
[test_ext_runtime_sendMessage_no_receiver.js]
|
||||
|
|
|
@ -802,7 +802,7 @@ var AddonTestUtils = {
|
|||
|
||||
// Wait for all add-ons to finish starting up before resolving.
|
||||
const {XPIProvider} = ChromeUtils.import("resource://gre/modules/addons/XPIProvider.jsm", null);
|
||||
await Promise.all(Array.from(XPIProvider.activeAddons,
|
||||
await Promise.all(Array.from(XPIProvider.activeAddons.values(),
|
||||
addon => addon.startupPromise));
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче