summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/helper_browser_test_utils.js
blob: ac68c9b1d414a4026443fe538c03b0a068a23b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
// For hideSelectPopup.
Services.scriptloader.loadSubScript(
  "chrome://mochitests/content/browser/browser/base/content/test/forms/head.js",
  this
);

function openSelectPopup(selector = "select", win = window) {
  let popupShownPromise = BrowserTestUtils.waitForSelectPopupShown(win);
  EventUtils.synthesizeKey("KEY_ArrowDown", { altKey: true }, win);
  return popupShownPromise;
}