Skip to content

Commit

Permalink
Bug 1620801 - Replace usage of BrowserTestUtils.waitForCondition with…
Browse files Browse the repository at this point in the history
… TestUtils.waitForCondition. r=prathiksha

Differential Revision: https://phabricator.services.mozilla.com/D65927
  • Loading branch information
guArroyo committed Mar 9, 2020
1 parent 8a459d9 commit 8280fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browser/base/content/test/about/browser_aboutStopReload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function waitForNoAnimation(elt) {
return BrowserTestUtils.waitForCondition(() => !elt.hasAttribute("animate"));
return TestUtils.waitForCondition(() => !elt.hasAttribute("animate"));
}

async function getAnimatePromise(elt) {
Expand Down Expand Up @@ -121,7 +121,7 @@ add_task(async function checkAnimateStopOnTabAfterTabFinishesOpening() {
gBrowser,
waitForStateStop: true,
});
await BrowserTestUtils.waitForCondition(() => {
await TestUtils.waitForCondition(() => {
info(
"Waiting for tabAnimationsInProgress to equal 0, currently " +
gBrowser.tabAnimationsInProgress
Expand All @@ -147,7 +147,7 @@ add_task(async function checkDoShowStopFromLocalURI() {
opening: "about:robots",
waitForStateStop: true,
});
await BrowserTestUtils.waitForCondition(() => {
await TestUtils.waitForCondition(() => {
info(
"Waiting for tabAnimationsInProgress to equal 0, currently " +
gBrowser.tabAnimationsInProgress
Expand Down

0 comments on commit 8280fbb

Please sign in to comment.