Bug 1257750 - fix intermittent failures in browser_input_file_tooltips.js, r=jaws
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Fri, 22 Apr 2016 16:28:51 +0100
changeset 332442 4c44e98174729f00f5ed975e2587c86684581568
parent 332441 e16cf77ae90c39c1a1f118a7fbc42dfa0889e99e
child 332443 5554679e1574dee489253aaaa6c2e1320d9aceba
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1257750
milestone48.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 1257750 - fix intermittent failures in browser_input_file_tooltips.js, r=jaws MozReview-Commit-ID: 2J0GV4zVy6r
toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js
--- a/toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js
+++ b/toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js
@@ -92,23 +92,23 @@ function* do_test(test) {
     let tooltip = document.getElementById(tooltipId);
     tooltip.addEventListener("popupshown", function onpopupshown(event) {
       tooltip.removeEventListener("popupshown", onpopupshown);
       resolve(event.target);
     });
   });
   info("Initial mouse move");
   yield new Promise(resolve => {
-    EventUtils.synthesizeNativeMouseMove(tab.linkedBrowser, 100, 5, resolve);
+    EventUtils.synthesizeNativeMouseMove(tab.linkedBrowser, 50, 5, resolve);
   });
   info("Waiting");
-  yield new Promise(resolve => setTimeout(resolve, 100));
+  yield new Promise(resolve => setTimeout(resolve, 200));
   info("Second mouse move");
   yield new Promise(resolve => {
-    EventUtils.synthesizeNativeMouseMove(tab.linkedBrowser, 110, 15, resolve);
+    EventUtils.synthesizeNativeMouseMove(tab.linkedBrowser, 70, 5, resolve);
   });
   info("Waiting for tooltip to open");
   let tooltip = yield awaitTooltipOpen;
 
   is(tooltip.getAttribute("label"), test.result, "tooltip label should match expectation");
 
   info("Closing tab");
   yield BrowserTestUtils.removeTab(tab);