Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1613549 - Reduce the timeout in browser_search_tips.js because th…
Browse files Browse the repository at this point in the history
…e original delay has been removed. r=adw

Differential Revision: https://phabricator.services.mozilla.com/D63211
  • Loading branch information
mak77 committed Feb 19, 2020
1 parent e15533a commit 63ccbe1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
});

// These should match the same consts in UrlbarProviderSearchTips.jsm.
const SHOW_TIP_DELAY_MS = 200;
const MAX_SHOWN_COUNT = 4;
const LAST_UPDATE_THRESHOLD_MS = 24 * 60 * 60 * 1000;
const TIPS = {
Expand Down Expand Up @@ -669,7 +668,7 @@ async function checkTip(win, expectedTip, closeView = true) {
if (!expectedTip) {
// Wait a bit for the tip to not show up.
// eslint-disable-next-line mozilla/no-arbitrary-setTimeout
await new Promise(resolve => setTimeout(resolve, 3 * SHOW_TIP_DELAY_MS));
await new Promise(resolve => setTimeout(resolve, 100));
Assert.ok(!win.gURLBar.view.isOpen);
return;
}
Expand Down

0 comments on commit 63ccbe1

Please sign in to comment.