Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'linux' && os_version == '18.04' && asan OR os == 'linux' && os_version == '18.04' && tsan OR win11_2009 && asan
- Manifest: browser/components/preferences/tests/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
/**
* Test that we don't show sync pane when it's disabled.
*/
add_task(async function () {
await SpecialPowers.pushPrefEnv({
set: [["identity.fxaccounts.enabled", false]],
});
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {
leaveOpen: true,
});
ok(
gBrowser.contentDocument.getElementById("category-sync").hidden,
"sync category hidden"
);
// Check that we don't get any results in sync when searching:
await evaluateSearchResults("sync", "no-results-message");
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});