Bug 595831: Stop tests from accessing the update servers by default. r=robstrong, a=tests

This commit is contained in:
Dave Townsend 2010-09-22 14:12:28 -07:00
Родитель 7fe4d31af2
Коммит e7bbf3bf68
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1013,6 +1013,10 @@ Services.prefs.setBoolPref("extensions.showMismatchUI", false);
// By default, don't cache add-ons in AddonRepository.jsm
Services.prefs.setBoolPref("extensions.getAddons.cache.enabled", false);
// Point update checks to the local machine for fast failures
Services.prefs.setCharPref("extensions.update.url", "http://127.0.0.1/updateURL");
Services.prefs.setCharPref("extensions.blocklist.url", "http://127.0.0.1/blocklistURL");
// Register a temporary directory for the tests.
const gTmpD = gProfD.clone();
gTmpD.append("temp");