Bug 1620641 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_documentnavigation.js. r=prathiksha
authorsourab <skanthavar@live.com>
Sun, 08 Mar 2020 11:44:21 +0000
changeset 517472 3893a9b0514c64a7b5d0b9ea6dc2f62f0e845e08
parent 517470 da252eb0ae61dfd0f8aaa4ca6794a6fdc7de2f35
child 517473 e4e54d9013a03e47dc9ca0e70c78106d7aeb88cf
push id37193
push usershindli@mozilla.com
push dateSun, 08 Mar 2020 21:41:29 +0000
treeherdermozilla-central@7aa696aefc46 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersprathiksha
bugs1620641
milestone75.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1620641 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_documentnavigation.js. r=prathiksha Differential Revision: https://phabricator.services.mozilla.com/D65887
browser/base/content/test/general/browser_documentnavigation.js
--- a/browser/base/content/test/general/browser_documentnavigation.js
+++ b/browser/base/content/test/general/browser_documentnavigation.js
@@ -487,14 +487,14 @@ add_task(async function() {
 
   BrowserTestUtils.removeTab(gBrowser.selectedTab);
 });
 
 // XXXndeakin add tests for browsers inside of panels
 
 function promiseButtonShown(id) {
   let dwu = window.windowUtils;
-  return BrowserTestUtils.waitForCondition(() => {
+  return TestUtils.waitForCondition(() => {
     let target = document.getElementById(id);
     let bounds = dwu.getBoundsWithoutFlushing(target);
     return bounds.width > 0 && bounds.height > 0;
   }, `Waiting for button ${id} to have non-0 size`);
 }