Bug 1309961 - don't allow preferences to interfere with running updateManagerXML.js test. r=mhowell

This commit is contained in:
Robert Strong 2016-10-14 14:10:18 -07:00
Родитель d284d0bba8
Коммит aa6291082c
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -14,6 +14,11 @@ function run_test() {
start_httpserver();
setUpdateURLOverride(gURLData + gHTTPHandlerPath);
setUpdateChannel("test_channel");
// This test expects that the app.update.download.backgroundInterval
// preference doesn't already exist.
Services.prefs.deleteBranch("app.update.download.backgroundInterval");
standardInit();
do_execute_soon(run_test_pt01);
}

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

@ -12,6 +12,10 @@ function run_test() {
setUpdateChannel("test_channel");
// This test expects that the app.update.download.backgroundInterval
// preference doesn't already exist.
Services.prefs.deleteBranch("app.update.download.backgroundInterval");
// XXXrstrong - not specifying a detailsURL will cause a leak due to bug 470244
// and until bug 470244 is fixed this will not test the value for detailsURL
// when it isn't specified in the update xml.