Bug 1557233 - Port bug 1553237: addEngineWithDetails() now takes parameters in an object and is async. r=jorgk

This commit is contained in:
Geoff Lankow 2019-06-21 09:47:27 +02:00
Родитель 6b68738981
Коммит ac16dc0d05
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -65,8 +65,12 @@ function setupModule(module) {
Services.locale.requestedLocales = ["en-US"];
// Add a "bar" search engine that we can switch to be the default.
Services.search.addEngineWithDetails("bar", null, null, null, "post",
"http://www.example.com/search");
let engineAdded = false;
Services.search.addEngineWithDetails("bar", {
method: "post",
template: "http://www.example.com/search?q={searchTerms}",
}).then(() => engineAdded = true);
mc.waitFor(() => engineAdded);
}
function teardownModule(module) {