mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1465508 - Fix intermittent browser_ext_url_overrides_newtab.js r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4656 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
391e303121
commit
90c43c6a11
@ -225,7 +225,6 @@ skip-if = os == 'mac' # Save as PDF not supported on Mac OS X
|
||||
[browser_ext_themes_icons.js]
|
||||
[browser_ext_themes_validation.js]
|
||||
[browser_ext_url_overrides_newtab.js]
|
||||
skip-if = (os == 'linux' && debug) || (os == 'win' && debug) # Bug 1465508
|
||||
[browser_ext_user_events.js]
|
||||
[browser_ext_webRequest.js]
|
||||
[browser_ext_webNavigation_frameId0.js]
|
||||
|
@ -309,10 +309,11 @@ add_task(async function test_new_tab_restore_settings() {
|
||||
// Click the Restore Changes button.
|
||||
let addonDisabled = waitForAddonDisabled(addon);
|
||||
let popupHidden = promisePopupHidden(panel);
|
||||
let locationChanged = BrowserTestUtils.waitForLocationChange(gBrowser, "about:newtab");
|
||||
clickRestoreSettings(notification);
|
||||
await popupHidden;
|
||||
await addonDisabled;
|
||||
await BrowserTestUtils.waitForLocationChange(gBrowser, "about:newtab");
|
||||
await locationChanged;
|
||||
|
||||
// Ensure panel is closed, settings haven't changed and add-on is disabled.
|
||||
ok(panel.getAttribute("panelopen") != "true",
|
||||
@ -435,10 +436,11 @@ add_task(async function test_new_tab_restore_settings_multiple() {
|
||||
|
||||
addonDisabled = waitForAddonDisabled(addonOne);
|
||||
popupHidden = promisePopupHidden(panel);
|
||||
let locationChanged = BrowserTestUtils.waitForLocationChange(gBrowser, "about:newtab");
|
||||
clickRestoreSettings(notification);
|
||||
await popupHidden;
|
||||
await addonDisabled;
|
||||
await BrowserTestUtils.waitForLocationChange(gBrowser, "about:newtab");
|
||||
await locationChanged;
|
||||
|
||||
ok(panel.getAttribute("panelopen") != "true",
|
||||
"The notification panel is closed after restoring the second time");
|
||||
|
Loading…
Reference in New Issue
Block a user