diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/preferences/tests/browser_trendingsuggestions.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/preferences/tests/browser_trendingsuggestions.js')
-rw-r--r-- | browser/components/preferences/tests/browser_trendingsuggestions.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/browser/components/preferences/tests/browser_trendingsuggestions.js b/browser/components/preferences/tests/browser_trendingsuggestions.js index 1cfae387cf..81285b7f6f 100644 --- a/browser/components/preferences/tests/browser_trendingsuggestions.js +++ b/browser/components/preferences/tests/browser_trendingsuggestions.js @@ -78,3 +78,20 @@ add_task(async function testNonTrendingEngine() { ); gBrowser.removeCurrentTab(); }); + +add_task(async function testEnabledTrendingEngine() { + const engine1 = Services.search.getEngineByName("Google"); + Services.search.setDefault( + engine1, + Ci.nsISearchService.CHANGE_REASON_UNKNOWN + ); + await openPreferencesViaOpenPreferencesAPI("search", { leaveOpen: true }); + let doc = gBrowser.selectedBrowser.contentDocument; + let trendingCheckbox = doc.getElementById(TRENDING_CHECKBOX_ID); + + Assert.ok( + !trendingCheckbox.disabled, + "Checkbox should not be disabled when an engine that supports trending suggestions is default" + ); + gBrowser.removeCurrentTab(); +}); |