blob: 61b8be1fcd77d1023daa4db14b01c4ac7b9924b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function () {
// Wait for the browser to be ready to receive keyboard events.
if (!gBrowser.selectedBrowser.hasLayers) {
await BrowserTestUtils.waitForEvent(window, "MozLayerTreeReady");
}
EventUtils.synthesizeKey("KEY_Escape", { shiftKey: true });
await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
Assert.equal(gBrowser.selectedBrowser.currentURI.spec, "about:processes");
});
|