Bug 1530281 - Replace promiseWaitForEvent in browser_typeAheadFind.js with BrowserTestUtils.waitForEvent. r=johannh
authorshivani <shivanisehgal3101@gmail.com>
Wed, 06 Mar 2019 09:39:03 +0000
changeset 520469 2edf8ec64d183fdbdfa146f6a4a1c68273c4cd37
parent 520468 f1dd1d737828a3a177a7d885bf0d2f8ed1e337e1
child 520470 0826fd0e4d5cee9eac59a2de557bf1b0cbfdb1c2
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
bugs1530281
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 1530281 - Replace promiseWaitForEvent in browser_typeAheadFind.js with BrowserTestUtils.waitForEvent. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D22101
browser/base/content/test/general/browser_typeAheadFind.js
--- a/browser/base/content/test/general/browser_typeAheadFind.js
+++ b/browser/base/content/test/general/browser_typeAheadFind.js
@@ -7,16 +7,16 @@ add_task(async function() {
 
   BrowserTestUtils.loadURI(testWindow.gBrowser, "data:text/html,<h1>A Page</h1>");
   await BrowserTestUtils.browserLoaded(testWindow.gBrowser.selectedBrowser);
 
   await SimpleTest.promiseFocus(testWindow.gBrowser.selectedBrowser);
 
   ok(!testWindow.gFindBarInitialized, "find bar is not initialized");
 
-  let findBarOpenPromise = promiseWaitForEvent(testWindow.gBrowser, "findbaropen");
+  let findBarOpenPromise = BrowserTestUtils.waitForEvent(testWindow.gBrowser, "findbaropen");
   EventUtils.synthesizeKey("/", {}, testWindow);
   await findBarOpenPromise;
 
   ok(testWindow.gFindBarInitialized, "find bar is now initialized");
 
   await BrowserTestUtils.closeWindow(testWindow);
 });