Bug 1515226 - Intermittent timout in browser_tabMatchesInAwesomebar_perwindowpb.js. r=Standard8
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 05 Mar 2019 13:39:05 +0000
changeset 520252 bb0bbaf4c57993bcd500858745ee4dd53e1c42cb
parent 520251 4e8b8c1e0d19cf0c5bba05fd3df46254d5d68ab9
child 520253 9f4cf036e59185886c556c1db10625fda20b5c51
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs1515226
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 1515226 - Intermittent timout in browser_tabMatchesInAwesomebar_perwindowpb.js. r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D22066
browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar_perwindowpb.js
--- a/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar_perwindowpb.js
+++ b/browser/components/urlbar/tests/browser/browser_tabMatchesInAwesomebar_perwindowpb.js
@@ -61,17 +61,19 @@ async function runTest(aSourceWindow, aD
   await ContentTask.spawn(testTab.linkedBrowser, null, async function() {
     ok(!content.document.body.hasChildNodes(),
        "The test tab has no child nodes");
   });
   ok(!testTab.hasAttribute("busy"),
      "The test tab doesn't have the busy attribute");
 
   // Wait for the Awesomebar popup to appear.
-  await promiseAutocompleteResultPopup(TEST_URL, aDestWindow);
+  // Use a slice to workaround bug 1507755.
+  let searchString = UrlbarPrefs.get("quantumbar") ? TEST_URL : TEST_URL.slice(1);
+  await promiseAutocompleteResultPopup(searchString, aDestWindow);
 
   info(`awesomebar popup appeared. aExpectSwitch: ${aExpectSwitch}`);
   // Make sure the last match is selected.
   while (UrlbarTestUtils.getSelectedIndex(aDestWindow) <
          UrlbarTestUtils.getResultCount(aDestWindow) - 1) {
     info("handling key navigation for DOM_VK_DOWN key");
     EventUtils.synthesizeKey("KEY_ArrowDown", {}, aDestWindow);
   }