зеркало из https://github.com/mozilla/gecko-dev.git
test cleanup for bug 516444 - test_browserGlue_distribution.js should not pollute next tests in case of failure. r=trivial-cleanup
This commit is contained in:
Родитель
7df5fc2f99
Коммит
b8f3bfd39c
|
@ -132,12 +132,15 @@ function continue_test() {
|
|||
// Check distribution prefs have been created.
|
||||
do_check_eq(ps.getCharPref(PREF_DISTRIBUTION_ID), "516444");
|
||||
|
||||
// Remove the distribution file.
|
||||
do_test_finished();
|
||||
}
|
||||
|
||||
do_register_cleanup(function() {
|
||||
// Remove the distribution file, even if the test failed, otherwise all
|
||||
// next tests will import it.
|
||||
let iniFile = dirSvc.get("XCurProcD", Ci.nsIFile);
|
||||
iniFile.append("distribution");
|
||||
iniFile.append("distribution.ini");
|
||||
iniFile.remove(false);
|
||||
do_check_false(iniFile.exists());
|
||||
|
||||
do_test_finished();
|
||||
}
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче