tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5a87c2860e0264ed8dd14e1ac9d9a175d0ae417e
parent 186822e44db0341697995e2ea9c32268ee039f18
Author: mcheang <mcheang@mozilla.com>
Date:   Sat, 18 Oct 2025 08:22:39 +0000

Bug 1994348 - Fix test_selector_db_out_of_date failure. r=Standard8

The test is updated to check the most important engines and not every
single engine in the list.

Differential Revision: https://phabricator.services.mozilla.com/D269120

Diffstat:
Mtoolkit/components/search/tests/xpcshell/searchconfigs/test_selector_db_out_of_date.js | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/toolkit/components/search/tests/xpcshell/searchconfigs/test_selector_db_out_of_date.js b/toolkit/components/search/tests/xpcshell/searchconfigs/test_selector_db_out_of_date.js @@ -60,9 +60,11 @@ add_task(async function test_selector_db_out_of_date() { region: "default", }); - Assert.deepEqual( - result.engines.map(e => e.identifier), - ["google", "bing", "ddg", "wikipedia"], - "Should have returned the correct data." + let engineIdentifiers = result.engines.map(e => e.identifier); + Assert.ok( + ["google", "bing", "ddg", "wikipedia"].every(id => + engineIdentifiers.includes(id) + ), + "Should have returned the correct engine identifiers." ); });