mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1622277 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_popup_blocker_identity_block.js r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D71046 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
e8a38f48d0
commit
615c8819f4
@ -70,14 +70,14 @@ add_task(async function check_blocked_popup_indicator() {
|
||||
});
|
||||
|
||||
// Wait for popup block.
|
||||
await BrowserTestUtils.waitForCondition(() =>
|
||||
await TestUtils.waitForCondition(() =>
|
||||
gBrowser.getNotificationBox().getNotificationWithValue("popup-blocked")
|
||||
);
|
||||
|
||||
// Check if blocked popup indicator text is visible in the identity popup. It should be visible.
|
||||
document.getElementById("identity-icon").click();
|
||||
await openIdentityPopup();
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
await TestUtils.waitForCondition(
|
||||
() => document.getElementById("blocked-popup-indicator-item") !== null
|
||||
);
|
||||
|
||||
@ -104,7 +104,7 @@ add_task(async function check_popup_showing() {
|
||||
});
|
||||
|
||||
// Wait for popup block.
|
||||
await BrowserTestUtils.waitForCondition(() =>
|
||||
await TestUtils.waitForCondition(() =>
|
||||
gBrowser.getNotificationBox().getNotificationWithValue("popup-blocked")
|
||||
);
|
||||
|
||||
@ -122,7 +122,7 @@ add_task(async function check_popup_showing() {
|
||||
text.click();
|
||||
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.tabContainer, "TabOpen");
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
await TestUtils.waitForCondition(
|
||||
() => popup.linkedBrowser.currentURI.spec != "about:blank"
|
||||
);
|
||||
|
||||
@ -152,7 +152,7 @@ add_task(async function check_permission_state_change() {
|
||||
});
|
||||
|
||||
// Wait for popup block.
|
||||
await BrowserTestUtils.waitForCondition(() =>
|
||||
await TestUtils.waitForCondition(() =>
|
||||
gBrowser.getNotificationBox().getNotificationWithValue("popup-blocked")
|
||||
);
|
||||
|
||||
@ -182,7 +182,7 @@ add_task(async function check_permission_state_change() {
|
||||
}),
|
||||
BrowserTestUtils.waitForEvent(gBrowser.tabContainer, "TabOpen"),
|
||||
]);
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
await TestUtils.waitForCondition(
|
||||
() => popup.linkedBrowser.currentURI.spec != "about:blank"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user