mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Bug 1443404 - Fix browser_urlbarFocusedCmdK.js intermittent failure. r=Gijs
MozReview-Commit-ID: AA31YY6nUPc --HG-- extra : rebase_source : 61f810b2dbd85846496b941bf999342efdde4515
This commit is contained in:
parent
117d05d6e5
commit
ed5f1e7927
@ -4,6 +4,7 @@
|
||||
add_task(async function() {
|
||||
// Test that Ctrl/Cmd + K will focus the url bar
|
||||
let focusPromise = BrowserTestUtils.waitForEvent(gURLBar, "focus");
|
||||
document.documentElement.focus();
|
||||
EventUtils.synthesizeKey("k", { accelKey: true });
|
||||
await focusPromise;
|
||||
Assert.equal(document.activeElement, gURLBar.inputField, "URL Bar should be focused");
|
||||
|
Loading…
x
Reference in New Issue
Block a user