Bug 789422 - Part 3: Update the unit tests to test for the new behavior; r=rstrong

This commit is contained in:
Ehsan Akhgari 2012-09-11 14:12:51 -04:00
Родитель 51d5a9e2b2
Коммит cf8005c533
4 изменённых файлов: 8 добавлений и 36 удалений

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

@ -559,15 +559,8 @@ function checkUpdateFinished() {
do_check_false(log.exists());
updatesDir.append("0");
if (IS_WIN) {
// On Windows, this log file is written to the AppData directory, and will
// therefore exist.
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
} else {
logTestInfo("testing " + updatesDir.path + " shouldn't exist");
do_check_false(updatesDir.exists());
}
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
removeCallbackCopy();
}

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

@ -584,15 +584,8 @@ function checkUpdateFinished() {
do_check_false(log.exists());
updatesDir.append("0");
if (IS_WIN) {
// On Windows, this log file is written to the AppData directory, and will
// therefore exist.
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
} else {
logTestInfo("testing " + updatesDir.path + " shouldn't exist");
do_check_false(updatesDir.exists());
}
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
removeCallbackCopy();
}

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

@ -536,15 +536,8 @@ function checkUpdateFinished() {
do_check_false(log.exists());
updatesDir.append("0");
if (IS_WIN) {
// On Windows, this log file is written to the AppData directory, and will
// therefore exist.
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
} else {
logTestInfo("testing " + updatesDir.path + " shouldn't exist");
do_check_false(updatesDir.exists());
}
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
removeCallbackCopy();
}

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

@ -565,15 +565,8 @@ function checkUpdateFinished() {
do_check_false(log.exists());
updatesDir.append("0");
if (IS_WIN) {
// On Windows, this log file is written to the AppData directory, and will
// therefore exist.
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
} else {
logTestInfo("testing " + updatesDir.path + " shouldn't exist");
do_check_false(updatesDir.exists());
}
logTestInfo("testing " + updatesDir.path + " should exist");
do_check_true(updatesDir.exists());
removeCallbackCopy();
}