Bug 1361276 - Wait for mousemove instead of mouseover in browser/components/search/test/browser_oneOffHeader.js. r=johannh
authorTooru Fujisawa <arai_a@mac.com>
Sat, 18 Nov 2017 22:57:18 +0900
changeset 392579 ae9e1ead6772ccc0e7d201f67cc786fe76e53bdd
parent 392578 c69914a662039fc3e359f74ed1c9ba58fcef6306
child 392580 f45f015cc1d1e82260e43546171fc09be808cd48
push id97475
push userarai_a@mac.com
push dateSat, 18 Nov 2017 13:59:29 +0000
treeherdermozilla-inbound@ae9e1ead6772 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1361276
milestone59.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 1361276 - Wait for mousemove instead of mouseover in browser/components/search/test/browser_oneOffHeader.js. r=johannh
browser/components/search/test/browser.ini
browser/components/search/test/browser_oneOffHeader.js
--- a/browser/components/search/test/browser.ini
+++ b/browser/components/search/test/browser.ini
@@ -34,17 +34,16 @@ skip-if = artifact # bug 1315953
 [browser_google_behavior.js]
 skip-if = artifact # bug 1315953
 [browser_healthreport.js]
 [browser_hiddenOneOffs_cleanup.js]
 [browser_hiddenOneOffs_diacritics.js]
 [browser_oneOffContextMenu.js]
 [browser_oneOffContextMenu_setDefault.js]
 [browser_oneOffHeader.js]
-skip-if = os == "mac" # bug 1361276
 [browser_private_search_perwindowpb.js]
 [browser_yahoo.js]
 [browser_abouthome_behavior.js]
 skip-if = true # Bug ??????, Bug 1100301 - leaks windows until shutdown when --run-by-dir
 [browser_aboutSearchReset.js]
 [browser_searchbar_openpopup.js]
 skip-if = os == "linux" # Linux has different focus behaviours.
 [browser_searchbar_keyboard_navigation.js]
--- a/browser/components/search/test/browser_oneOffHeader.js
+++ b/browser/components/search/test/browser_oneOffHeader.js
@@ -33,24 +33,24 @@ const utils = window.QueryInterface(Ci.n
                     .getInterface(Ci.nsIDOMWindowUtils);
 const scale = utils.screenPixelsPerCSSPixel;
 function synthesizeNativeMouseMove(aElement) {
   let rect = aElement.getBoundingClientRect();
   let win = aElement.ownerGlobal;
   let x = win.mozInnerScreenX + (rect.left + rect.right) / 2;
   let y = win.mozInnerScreenY + (rect.top + rect.bottom) / 2;
 
-  // Wait for the mouseup event to occur before continuing.
+  // Wait for the mousemove event to occur before continuing.
   return new Promise((resolve, reject) => {
     function eventOccurred(e) {
-      aElement.removeEventListener("mouseover", eventOccurred, true);
+      aElement.removeEventListener("mousemove", eventOccurred, true);
       resolve();
     }
 
-    aElement.addEventListener("mouseover", eventOccurred, true);
+    aElement.addEventListener("mousemove", eventOccurred, true);
 
     utils.sendNativeMouseEvent(x * scale, y * scale, msg, 0, null);
   });
 }
 
 let searchbar;
 let searchIcon;