Bug 1530281 - Replace promiseWaitForEvent in browser_typeAheadFind.js with BrowserTestUtils.waitForEvent. r=johannh

Differential Revision: https://phabricator.services.mozilla.com/D22101

--HG--
extra : moz-landing-system : lando
This commit is contained in:
shivani 2019-03-06 09:39:03 +00:00
parent 68dc81978e
commit 86c8a5c629

View File

@ -12,7 +12,7 @@ add_task(async function() {
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;