Bug 1099332 - Ensure there is no active search engines before test run. r=mak77

This commit is contained in:
Hiroyuki Ikezoe 2014-11-25 15:35:18 -08:00
parent d89d54969e
commit f70b78ed6a

View File

@ -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;
}
});