Bug 503662 - Stop using tail_ files in xpcshell: use do_register_cleanup() instead. r=aceman
This commit is contained in:
Родитель
4dc0fac3a5
Коммит
56b0b6c034
|
@ -12,3 +12,7 @@ var CC = Components.Constructor;
|
|||
do_get_profile();
|
||||
|
||||
var gDEPTH = "../../../../";
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../mailnews/resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_mailbase.js
|
||||
tail = tail_base.js
|
||||
tail =
|
||||
support-files = distribution.ini resources/*
|
||||
|
||||
[test_alertHook.js]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_mailbase_maildir.js
|
||||
tail = tail_base.js
|
||||
tail =
|
||||
support-files = distribution.ini resources/*
|
||||
|
||||
[test_viewWrapper_virtualFolder.js]
|
||||
|
|
|
@ -12,3 +12,7 @@ var CC = Components.Constructor;
|
|||
do_get_profile();
|
||||
|
||||
var gDEPTH = "../../../../";
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../mailnews/resources/mailShutdown.js");
|
|
@ -1,5 +1,5 @@
|
|||
[DEFAULT]
|
||||
head = head_mailcomponents.js
|
||||
tail = tail_mailcomponents.js
|
||||
tail =
|
||||
|
||||
[test_about_support.js]
|
||||
|
|
|
@ -12,3 +12,7 @@ do_get_profile();
|
|||
|
||||
// Import the required setup scripts.
|
||||
load("../../../resources/abSetup.js");
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_addrbook.js
|
||||
tail = tail_addrbook.js
|
||||
tail =
|
||||
support-files = data/*
|
||||
|
||||
[test_basic_nsIAbCard.js]
|
||||
|
|
|
@ -13,3 +13,7 @@ var CC = Components.Constructor;
|
|||
do_get_profile();
|
||||
|
||||
var gDEPTH = "../../../../";
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_mailbase.js
|
||||
tail = tail_base.js
|
||||
tail =
|
||||
support-files = nodelist_test.xml data/*
|
||||
|
||||
[test_accountMgr.js]
|
||||
|
|
|
@ -212,3 +212,6 @@ function getAttachmentFromContent(aContent) {
|
|||
return attachments[1];
|
||||
}
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_compose.js
|
||||
tail = tail_compose.js
|
||||
tail =
|
||||
support-files = data/*
|
||||
|
||||
[test_attachment.js]
|
||||
|
|
|
@ -14,3 +14,7 @@ do_get_profile();
|
|||
var gDEPTH = "../../../../../";
|
||||
|
||||
// glodaTestHelper.js does all the rest of the imports
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_gloda.js
|
||||
tail = tail_gloda.js
|
||||
tail =
|
||||
support-files = base_*.js resources/*
|
||||
|
||||
[test_cleanup_msf_databases.js]
|
||||
|
|
|
@ -11,3 +11,7 @@ var CC = Components.Constructor;
|
|||
|
||||
// Ensure the profile directory is set up
|
||||
do_get_profile();
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../../../mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_maildb.js
|
||||
tail = tail_msgdb.js
|
||||
tail =
|
||||
|
||||
[test_enumerator_cleanup.js]
|
||||
[test_filter_enumerator.js]
|
||||
|
|
|
@ -21,3 +21,7 @@ function getSpec(aFileName)
|
|||
uri.query = "type=application/x-message-display";
|
||||
return uri.spec;
|
||||
}
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../../resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_bayes.js
|
||||
tail = tail_bayesian.js
|
||||
tail =
|
||||
support-files = resources/*
|
||||
|
||||
[test_bug228675.js]
|
||||
|
|
|
@ -10,3 +10,8 @@ var CC = Components.Constructor;
|
|||
|
||||
// Ensure the profile directory is set up
|
||||
do_get_profile();
|
||||
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../../../mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_mdn.js
|
||||
tail = tail_mdn.js
|
||||
tail =
|
||||
|
||||
[test_askuser.js]
|
||||
[test_mdnFlags.js]
|
||||
|
|
|
@ -108,3 +108,6 @@ function addImapMessage()
|
|||
IMAPPump.mailbox.addMessage(imapMsg);
|
||||
}
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_server.js
|
||||
tail = tail_imap.js
|
||||
tail =
|
||||
|
||||
[test_autosync_date_constraints.js]
|
||||
[test_bccProperty.js]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_imap_maildir.js
|
||||
tail = tail_imap.js
|
||||
tail =
|
||||
|
||||
[test_autosync_date_constraints.js]
|
||||
[test_bccProperty.js]
|
||||
|
|
|
@ -15,3 +15,7 @@ load("../../../resources/abSetup.js");
|
|||
|
||||
// Import the script with basic import functions
|
||||
load("resources/import_helper.js");
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_import.js
|
||||
tail = tail_import.js
|
||||
tail =
|
||||
support-files = resources/*
|
||||
|
||||
[test_bug_263304.js]
|
||||
|
|
|
@ -19,3 +19,7 @@ Cu.import("resource://testing-common/mailnews/localAccountUtils.js");
|
|||
do_load_manifest("resources/testComponents.manifest")
|
||||
// Ensure the profile directory is set up.
|
||||
do_get_profile();
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../../mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80 filetype=javascript: */
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
load("../../../resources/mailShutdown.js");
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
[DEFAULT]
|
||||
head = head_jsaccount.js
|
||||
tail = tail_jsaccount.js
|
||||
tail =
|
||||
support-files = resources/*
|
||||
[test_componentsExist.js]
|
||||
[test_fooUrl.js]
|
||||
|
|
|
@ -167,3 +167,6 @@ function setup_mailbox(type, mailboxPath) {
|
|||
return incomingServer.rootFolder;
|
||||
}
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_maillocal.js
|
||||
tail = tail_local.js
|
||||
tail =
|
||||
support-files = data/*
|
||||
|
||||
[test_bug457168.js]
|
||||
|
|
|
@ -12,3 +12,7 @@ var CC = Components.Constructor;
|
|||
do_get_profile();
|
||||
|
||||
var gDEPTH = "../../../../";
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load(gDEPTH + "mailnews/resources/mailShutdown.js");
|
||||
});
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_mime.js
|
||||
tail = tail_mime.js
|
||||
tail =
|
||||
support-files = custom_header.js
|
||||
|
||||
[test_EncodeMimePartIIStr_UTF8.js]
|
||||
|
|
|
@ -249,3 +249,8 @@ var articleTextListener = {
|
|||
this.data += scriptStream.read(aCount);
|
||||
}
|
||||
};
|
||||
|
||||
do_register_cleanup(function() {
|
||||
load("../../../resources/mailShutdown.js");
|
||||
});
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
load("../../../resources/mailShutdown.js");
|
||||
|
||||
if (_server)
|
||||
_server.QueryInterface(Components.interfaces.nsISubscribableServer)
|
||||
.subscribeCleanup();
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head_server_setup.js
|
||||
tail = tail_news.js
|
||||
tail =
|
||||
support-files = postings/*
|
||||
|
||||
[test_biff.js]
|
||||
|
|
Загрузка…
Ссылка в новой задаче