Bug 1552410 - Fix intermittent failure in browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js. r=mak
authorDrew Willcoxon <adw@mozilla.com>
Thu, 27 Jun 2019 09:23:02 +0000
changeset 543211 e1d7069da89888339b88290801d8e8020c562b35
parent 543210 7ffabb358c4255897db3ceb09cad21a4731cb0ae
child 543212 1922dbb11b8b4c250b16ce818b7ccdc301f0d520
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1552410, 1548111
milestone69.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 1552410 - Fix intermittent failure in browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js. r=mak No failures on try after many retriggers: https://treeherder.mozilla.org/#/jobs?repo=try&revision=95f6afa49be33f1a407208a476df5631d6cfbc81&selectedJob=253610974 (Although an intermittent timeout, which is another bug, bug 1548111, did happen.) Differential Revision: https://phabricator.services.mozilla.com/D36143
browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
--- a/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
+++ b/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar.js
@@ -187,13 +187,16 @@ async function checkAutocompleteResults(
 
     info(`Search for ${url} in open tabs.`);
     let inExpected = url in expected;
     Assert.ok(inExpected, `${url} was found in autocomplete, was ${inExpected ? "" : "not "} expected`);
     // Remove the found entry from expected results.
     delete expected[url];
   }
 
+  await UrlbarTestUtils.promisePopupClose(window,
+    () => EventUtils.synthesizeKey("KEY_Escape"));
+
   // Make sure there is no reported open page that is not open.
   for (let entry in expected) {
     Assert.ok(!entry, `Should have been found in autocomplete`);
   }
 }