зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1703125 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser/base/content/test/popupNotifications/head.js. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D110950
This commit is contained in:
Родитель
e1c2a8125f
Коммит
e302eb2afc
|
@ -15,11 +15,11 @@ ChromeUtils.defineModuleGetter(
|
|||
async function waitForWindowReadyForPopupNotifications(win) {
|
||||
// These are the same checks that PopupNotifications.jsm makes before it
|
||||
// allows a notification to open.
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
await TestUtils.waitForCondition(
|
||||
() => win.gBrowser.selectedBrowser.docShellIsActive,
|
||||
"The browser should be active"
|
||||
);
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
await TestUtils.waitForCondition(
|
||||
() => Services.focus.activeWindow == win,
|
||||
"The window should be active"
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче