Bug 1530277 BrowserTestUtils.waitForEvent added in browser_findbarClose.js r=johannh
authormonikamaheshwari <monikamaheshwari1996@gmail.com>
Thu, 28 Feb 2019 10:21:27 +0000
changeset 519675 aa3eeabe637202d84adf27be56c605dc3f379410
parent 519674 7b207f663111679955e6e059a1e405f01a0bc0b5
child 519676 cc20c56545bd250c3c0f1bdc67de3d77fee2ce42
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1530277
milestone67.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 1530277 BrowserTestUtils.waitForEvent added in browser_findbarClose.js r=johannh Have replace promiseWaitForEvent in browser_findbarClose.js with BrowserTestUtils.waitForEvent Differential Revision: https://phabricator.services.mozilla.com/D21366
browser/base/content/test/general/browser_findbarClose.js
--- a/browser/base/content/test/general/browser_findbarClose.js
+++ b/browser/base/content/test/general/browser_findbarClose.js
@@ -22,15 +22,14 @@ add_task(async function findbar_test() {
     let awaitLoad = ContentTaskUtils.waitForEvent(iframe, "load", false);
     iframe.src = "https://example.org/";
     await awaitLoad;
   });
 
   ok(!gFindBar.hidden, "the Find bar isn't hidden after the location of a " +
      "subdocument changes");
 
-  let findBarClosePromise = promiseWaitForEvent(gBrowser, "findbarclose");
+  let findBarClosePromise = BrowserTestUtils.waitForEvent(gBrowser, "findbarclose");
   gFindBar.close();
   await findBarClosePromise;
 
   gBrowser.removeTab(newTab);
 });
-