diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/preferences/tests/browser_trendingsuggestions.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/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(); +}); |