Port Bug 1453264 - Dropping nsIBrowserSearchService::currentEngine in favour of defaultEngine. r=Standard8

This commit is contained in:
Ed Lee 2018-11-29 15:37:17 -08:00
Родитель d028c32829
Коммит bea035f183
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -198,10 +198,10 @@ add_task(async function checksearchEngines() {
"searchEngines.installed should be an array of visible search engines");
ok(result.current && typeof result.current === "string",
"searchEngines.current should be a truthy string");
is(result.current, Services.search.currentEngine.identifier,
is(result.current, Services.search.defaultEngine.identifier,
"searchEngines.current should be the current engine name");
const message = {id: "foo", targeting: `searchEngines[.current == ${Services.search.currentEngine.identifier}]`};
const message = {id: "foo", targeting: `searchEngines[.current == ${Services.search.defaultEngine.identifier}]`};
is(await ASRouterTargeting.findMatchingMessage({messages: [message]}), message,
"should select correct item by searchEngines.current");