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:
Rob Wu 2018-08-30 13:29:18 +00:00
parent 391e303121
commit 90c43c6a11
2 changed files with 4 additions and 3 deletions

View File

@ -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]

View File

@ -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");