Bug 1531039 - Fix a couple more tests in browser/base/content to work with QuantumBar. r=adw
authorMark Banner <standard8@mozilla.com>
Thu, 28 Feb 2019 00:02:39 +0000
changeset 461598 4e83e2476c3c139592b55296d96d6e02117729e4
parent 461597 6ce57ecce4746363b234d4919023dec3f9ab38e3
child 461599 1977f2af54696eef4969cced14f9497727207526
push id35625
push usercsabou@mozilla.com
push dateThu, 28 Feb 2019 10:55:23 +0000
treeherdermozilla-central@fd53d5e80bca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw
bugs1531039
milestone67.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 1531039 - Fix a couple more tests in browser/base/content to work with QuantumBar. r=adw Differential Revision: https://phabricator.services.mozilla.com/D21377
browser/base/content/test/pageActions/browser_page_action_menu.js
browser/base/content/test/sidebar/browser_sidebar_keys.js
--- a/browser/base/content/test/pageActions/browser_page_action_menu.js
+++ b/browser/base/content/test/pageActions/browser_page_action_menu.js
@@ -843,17 +843,17 @@ add_task(async function contextMenu() {
     await BrowserTestUtils.waitForCondition(() => {
       return !starButtonBox.hidden;
     }, "Waiting for star button to become unhidden");
   });
 
   // urlbar tests that run after this one can break if the mouse is left over
   // the area where the urlbar popup appears, which seems to happen due to the
   // above synthesized mouse events.  Move it over the urlbar.
-  EventUtils.synthesizeMouseAtCenter(gURLBar, { type: "mousemove" });
+  EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, { type: "mousemove" });
   gURLBar.focus();
 });
 
 
 function promiseSyncReady() {
   let service = Cc["@mozilla.org/weave/service;1"]
                   .getService(Ci.nsISupports)
                   .wrappedJSObject;
--- a/browser/base/content/test/sidebar/browser_sidebar_keys.js
+++ b/browser/base/content/test/sidebar/browser_sidebar_keys.js
@@ -1,13 +1,13 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 async function testSidebarKeyToggle(key, options, expectedSidebarId) {
-  EventUtils.synthesizeMouseAtCenter(gURLBar, {});
+  EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {});
   let promiseShown = BrowserTestUtils.waitForEvent(window, "SidebarShown");
   EventUtils.synthesizeKey(key, options);
   await promiseShown;
   Assert.equal(document.getElementById("sidebar-box")
                        .getAttribute("sidebarcommand"), expectedSidebarId);
   EventUtils.synthesizeKey(key, options);
   Assert.ok(!SidebarUI.isOpen);
 }