зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1099332 - Ensure there is no active search engines before test run. r=mak77
This commit is contained in:
Родитель
3af5b65ce8
Коммит
554d869b1f
|
@ -296,3 +296,12 @@ function makeActionURI(action, params) {
|
|||
let url = "moz-action:" + action + "," + JSON.stringify(params);
|
||||
return NetUtil.newURI(url);
|
||||
}
|
||||
|
||||
// Hide all the search engines so they don't influence tests results.
|
||||
add_task(function ensure_no_search_engines() {
|
||||
let count = {};
|
||||
let engines = Services.search.getEngines(count);
|
||||
for (let i = 0; i < count.value; i++) {
|
||||
engines[i].hidden = true;
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче