From 615c8819f407ed66cbefa343cdd25e4f847196d6 Mon Sep 17 00:00:00 2001 From: devRD Date: Wed, 15 Apr 2020 15:53:13 +0000 Subject: [PATCH] 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 --- .../popups/browser_popup_blocker_identity_block.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/browser/base/content/test/popups/browser_popup_blocker_identity_block.js b/browser/base/content/test/popups/browser_popup_blocker_identity_block.js index 7051c72abdbb..d1819923827f 100644 --- a/browser/base/content/test/popups/browser_popup_blocker_identity_block.js +++ b/browser/base/content/test/popups/browser_popup_blocker_identity_block.js @@ -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" );