Bug 1536508 - Generate a mouseover as well as a mouseout to avoid issues in devedition with browser_UrlbarInput_tooltip.js. r=mak
authorMark Banner <standard8@mozilla.com>
Tue, 09 Apr 2019 07:31:31 +0000
changeset 468495 6efaae3bcd67bc0881a114c5c7dbd319e6b4abc2
parent 468494 011065697f6b27b03cb34b7e09d4d1c99833b4d4
child 468496 6c91075dffe633e3334b94bfbe93ec5053345cf6
child 468524 98b223de054374a3fba8669750eed1a8b3247baa
push id82626
push usermbanner@mozilla.com
push dateTue, 09 Apr 2019 07:44:35 +0000
treeherderautoland@6efaae3bcd67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1536508
milestone68.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 1536508 - Generate a mouseover as well as a mouseout to avoid issues in devedition with browser_UrlbarInput_tooltip.js. r=mak Differential Revision: https://phabricator.services.mozilla.com/D26531
browser/components/urlbar/tests/browser/browser_UrlbarInput_tooltip.js
--- a/browser/components/urlbar/tests/browser/browser_UrlbarInput_tooltip.js
+++ b/browser/components/urlbar/tests/browser/browser_UrlbarInput_tooltip.js
@@ -61,16 +61,17 @@ async function expectNoTooltip() {
 add_task(async function() {
   window.windowUtils.disableNonTestMouseEvents(true);
   registerCleanupFunction(() => {
     window.windowUtils.disableNonTestMouseEvents(false);
   });
 
   // Ensure the URL bar is neither focused nor hovered before we start.
   gBrowser.selectedBrowser.focus();
+  await synthesizeMouseOver(gURLBar.inputField);
   await synthesizeMouseOut(gURLBar.inputField);
 
   gURLBar.value = "short string";
   await expectNoTooltip();
 
   let longURL = "http://longurl.com/" + "foobar/".repeat(30);
   gURLBar.value = longURL;
   is(gURLBar.inputField.value, longURL.replace(/^http:\/\//, ""), "Urlbar value has http:// stripped");