Bug 1015617: close the panel directly, instead of relying on keyboard events and window focus. r=Gijs
authorMike de Boer <mdeboer@mozilla.com>
Wed, 04 Jun 2014 16:48:52 +0200
changeset 205793 c9db5a1356bca1660b9a7e4da5d01ee48ec0dc65
parent 205792 2fbb4b93bce197cc81dc3d02c8289392cc47ba76
child 205794 8a3065aa8100a9bd217eb797b373b9ea4e639577
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1015617
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1015617: close the panel directly, instead of relying on keyboard events and window focus. r=Gijs
browser/components/customizableui/test/browser_962069_drag_to_overflow_chevron.js
--- a/browser/components/customizableui/test/browser_962069_drag_to_overflow_chevron.js
+++ b/browser/components/customizableui/test/browser_962069_drag_to_overflow_chevron.js
@@ -19,20 +19,20 @@ add_task(function*() {
 
   let widgetOverflowPanel = document.getElementById("widget-overflow");
   let panelShownPromise = promisePanelElementShown(window, widgetOverflowPanel);
   let identityBox = document.getElementById("identity-box");
   let overflowChevron = document.getElementById("nav-bar-overflow-button");
   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;
 });
 
 add_task(function*() {
   window.resizeTo(originalWindowWidth, window.outerHeight);
   let navbar = document.getElementById(CustomizableUI.AREA_NAVBAR);
   yield waitForCondition(() => !navbar.hasAttribute("overflowing"));
   ok(!navbar.hasAttribute("overflowing"), "Should not have an overflowing toolbar.");