Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
/*
* This file contains tests for the "Add Engine" subdialog.
*/
/**
* Test for searching for the "Add Engine" subdialog.
*/
add_task(
{ skip_if: () => SRD_PREF_VALUE },
async function searchAddEngineLegacy() {
await openPreferencesViaOpenPreferencesAPI(DEFAULT_PANE, {
leaveOpen: true,
});
await evaluateSearchResults("Add Engine", "oneClickSearchProvidersGroup");
BrowserTestUtils.removeTab(gBrowser.selectedTab);
}
);
add_task({ skip_if: () => !SRD_PREF_VALUE }, async function searchAddEngine() {
await openPreferencesViaOpenPreferencesAPI(DEFAULT_PANE, {
leaveOpen: true,
});
await evaluateSearchResults("Add Engine", "searchShortcuts");
BrowserTestUtils.removeTab(gBrowser.selectedTab);
});