[Australis] Bug 980374: update browser_toolbarbutton_menu_context.js test. r=MattN
authorMike de Boer <mdeboer@mozilla.com>
Wed, 12 Mar 2014 23:29:55 +0100
changeset 191541 ab6e51e115bc676a79b08bf385fb85291db22e7f
parent 191540 3f47ab139eb4d241921b342903f28ebc296ebd60
child 191542 1a9fa8fde7e0898d4f1cbb0fd9464fcc983da7bd
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs980374
milestone30.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
[Australis] Bug 980374: update browser_toolbarbutton_menu_context.js test. r=MattN
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
@@ -27,17 +27,17 @@ function* checkPopupContextMenu() {
   yield contextMenuShownPromise;
   ok(!newBookmarkItem.hasAttribute("disabled"), "New bookmark item shouldn't be disabled");
   let contextMenuHiddenPromise = onPopupEvent(contextMenu, "hidden");
   contextMenu.hidePopup();
   info("Waiting for context menu on bookmarks menu to be hidden.");
   yield contextMenuHiddenPromise;
   let popupHiddenPromise = onPopupEvent(BMB_menuPopup, "hidden");
   // Can't use synthesizeMouseAtCenter because the dropdown panel is in the way
-  EventUtils.synthesizeMouse(dropmarker, 2, 2, {});
+  EventUtils.synthesizeKey("VK_ESCAPE", {});
   info("Waiting for bookmarks menu to be hidden.");
   yield popupHiddenPromise;
 }
 
 function onPopupEvent(popup, evt) {
   let fullEvent = "popup" + evt;
   let deferred = new Promise.defer();
   let onPopupHandler = (e) => {