Bug 1359137 - fix bookmarks menu context test to not rely on AREA_PANEL, r=mikedeboer
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 31 May 2017 14:21:27 +0100
changeset 410458 ca3a6a1ab24f8279b30b73b76ceced0dcb295b9c
parent 410457 a0899380ac24b0dfea3ea5d6e2ed5f981491bf0e
child 410459 1ae454b63b5680c1be2290bd1e12dd2c870f40d3
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer
bugs1359137
milestone55.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 1359137 - fix bookmarks menu context test to not rely on AREA_PANEL, r=mikedeboer MozReview-Commit-ID: Dy0IzQKVazu
browser/components/places/tests/browser/browser_toolbarbutton_menu_context.js
--- a/browser/components/places/tests/browser/browser_toolbarbutton_menu_context.js
+++ b/browser/components/places/tests/browser/browser_toolbarbutton_menu_context.js
@@ -4,17 +4,19 @@ var BMB_showAllBookmarks = document.getE
 var contextMenu = document.getElementById("placesContext");
 var newBookmarkItem = document.getElementById("placesContext_new:bookmark");
 
 waitForExplicitFinish();
 add_task(async function testPopup() {
   info("Checking popup context menu before moving the bookmarks button");
   await checkPopupContextMenu();
   let pos = CustomizableUI.getPlacementOfWidget("bookmarks-menu-button").position;
-  CustomizableUI.addWidgetToArea("bookmarks-menu-button", CustomizableUI.AREA_PANEL);
+  let target = gPhotonStructure ? CustomizableUI.AREA_FIXED_OVERFLOW_PANEL
+                                : CustomizableUI.AREA_PANEL;
+  CustomizableUI.addWidgetToArea("bookmarks-menu-button", target);
   CustomizableUI.addWidgetToArea("bookmarks-menu-button", CustomizableUI.AREA_NAVBAR, pos);
   info("Checking popup context menu after moving the bookmarks button");
   await checkPopupContextMenu();
 });
 
 async function checkPopupContextMenu() {
   let dropmarker = document.getAnonymousElementByAttribute(bookmarksMenuButton, "anonid", "dropmarker");
   BMB_menuPopup.setAttribute("style", "transition: none;");