Bug 993712 - Try to fix intermittent browser_984455_bookmarks_items_reparenting.js by using openPopup to open menus instead of synthesized mouse events. rs=jaws,a=test-only
authorMike Conley <mconley@mozilla.com>
Fri, 23 May 2014 14:18:00 -0400
changeset 200467 13f8ae33faf89125bf7cce33f60c0c2cadd02a80
parent 200466 4c21b252632f4ce4600ff438efe8ce1b6b4d2a80
child 200468 6830ccd24825195cc920c61a09283ea082f79949
push id486
push userasasaki@mozilla.com
push dateMon, 14 Jul 2014 18:39:42 +0000
treeherdermozilla-release@d33428174ff1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, test-only
bugs993712
milestone31.0a2
Bug 993712 - Try to fix intermittent browser_984455_bookmarks_items_reparenting.js by using openPopup to open menus instead of synthesized mouse events. rs=jaws,a=test-only
browser/components/customizableui/test/browser_984455_bookmarks_items_reparenting.js
--- a/browser/components/customizableui/test/browser_984455_bookmarks_items_reparenting.js
+++ b/browser/components/customizableui/test/browser_984455_bookmarks_items_reparenting.js
@@ -77,17 +77,17 @@ function checkSpecialContextMenus() {
     EventUtils.synthesizeMouseAtCenter(dropmarker, {});
     info("Waiting for bookmarks menu popup to show after clicking dropmarker.")
     yield shownPromise;
 
     for (let menuID in kSpecialItemIDs) {
       let menuItem = document.getElementById(menuID);
       let menuPopup = document.getElementById(kSpecialItemIDs[menuID]);
       let shownPromise = popupShown(menuPopup);
-      EventUtils.synthesizeMouseAtCenter(menuItem, {});
+      menuPopup.openPopup(menuItem, null, 0, 0, false, false, null);
       yield shownPromise;
 
       yield checkPlacesContextMenu(menuPopup);
       yield closePopup(menuPopup);
     }
 
     yield closePopup(bookmarksMenuPopup);
   });