Bug 1015617: close the panel directly, instead of relying on keyboard events and window focus. r=Gijs

This commit is contained in:
Mike de Boer 2014-06-04 16:48:52 +02:00
parent 80b1973bb9
commit bc0579c7bb

View File

@ -24,10 +24,10 @@ add_task(function*() {
ChromeUtils.synthesizeDrop(identityBox, overflowChevron, [], null);
yield panelShownPromise;
ok(true, "Overflow panel is shown.");
info("Overflow panel is shown.");
let panelHiddenPromise = promisePanelElementHidden(window, widgetOverflowPanel);
EventUtils.synthesizeKey("VK_ESCAPE", {});
widgetOverflowPanel.hidePopup();
yield panelHiddenPromise;
});