mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
68dc81978e
commit
86c8a5c629
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user