зеркало из https://github.com/mozilla/pjs.git
Bug 601223: Intermittent test-xpcshell failure in test_filepointer.js. r=robstrong, a=tests
This commit is contained in:
Родитель
f3d2f54329
Коммит
5fcb0ebb81
|
@ -209,7 +209,9 @@ function run_test_4() {
|
|||
|
||||
// Tests that changing the ID of an existing add-on doesn't clobber the sources
|
||||
function run_test_5() {
|
||||
writeInstallRDFForExtension(addon1, sourceDir);
|
||||
var dest = writeInstallRDFForExtension(addon1, sourceDir);
|
||||
// Make sure the modification time changes enough to be detected.
|
||||
setExtensionModifiedTime(dest, dest.lastModifiedTime - 5000);
|
||||
writePointer(addon1.id);
|
||||
|
||||
restartManager();
|
||||
|
@ -218,9 +220,7 @@ function run_test_5() {
|
|||
do_check_neq(a1, null);
|
||||
do_check_eq(a1.version, "1.0");
|
||||
|
||||
var dest = writeInstallRDFForExtension(addon2, sourceDir, addon1.id);
|
||||
// Make sure the modification time changes enough to be detected.
|
||||
setExtensionModifiedTime(dest, dest.lastModifiedTime - 5000);
|
||||
writeInstallRDFForExtension(addon2, sourceDir, addon1.id);
|
||||
|
||||
restartManager();
|
||||
|
||||
|
@ -244,7 +244,9 @@ function run_test_5() {
|
|||
|
||||
// Removing the pointer file should uninstall the add-on
|
||||
function run_test_6() {
|
||||
writeInstallRDFForExtension(addon1, sourceDir);
|
||||
var dest = writeInstallRDFForExtension(addon1, sourceDir);
|
||||
// Make sure the modification time changes enough to be detected in run_test_8.
|
||||
setExtensionModifiedTime(dest, dest.lastModifiedTime - 5000);
|
||||
writePointer(addon1.id);
|
||||
|
||||
restartManager();
|
||||
|
@ -308,9 +310,7 @@ function run_test_8() {
|
|||
do_check_neq(a1, null);
|
||||
do_check_eq(a1.version, "1.0");
|
||||
|
||||
var dest = writeInstallRDFForExtension(addon1_2, sourceDir);
|
||||
// Make sure the modification time changes enough to be detected.
|
||||
setExtensionModifiedTime(dest, dest.lastModifiedTime - 5000);
|
||||
writeInstallRDFForExtension(addon1_2, sourceDir);
|
||||
|
||||
restartManager();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче