Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* 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);
});