forked from mirrors/gecko-dev
MozReview-Commit-ID: AA31YY6nUPc --HG-- extra : rebase_source : 61f810b2dbd85846496b941bf999342efdde4515
12 lines
462 B
JavaScript
12 lines
462 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
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");
|
|
});
|
|
|