зеркало из https://github.com/mozilla/gecko-dev.git
Bug 789422 - Part 3: Update the unit tests to test for the new behavior; r=rstrong
This commit is contained in:
Родитель
51d5a9e2b2
Коммит
cf8005c533
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче