Bug 1530282 - Replace promiseWaitForEvent with BrowserTestUtils.waitForEvent r=johannh

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Arun Kumar Mohan 2019-07-16 18:04:01 +00:00
parent 2120b123a7
commit bc7be9f728

View File

@ -14,7 +14,10 @@ add_task(async function() {
let remote = gBrowser.selectedBrowser.isRemoteBrowser;
let findBarOpenPromise = promiseWaitForEvent(gBrowser, "findbaropen");
let findBarOpenPromise = BrowserTestUtils.waitForEvent(
gBrowser,
"findbaropen"
);
EventUtils.synthesizeKey("f", { accelKey: true });
await findBarOpenPromise;