summaryrefslogtreecommitdiffstats
path: root/toolkit/components/aboutprocesses/tests/browser/browser_aboutprocesses_shortcut.js
blob: c2303fd92e7dad73e1df41643592315cb0eaf83b (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");
});