Bug 1617887 - remove unused (mozmill) os.jsm imports. r=khushil
This commit is contained in:
Родитель
d0028f4d7b
Коммит
86128e2d84
|
@ -10,8 +10,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { select_attachments } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/AttachmentHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { wait_for_element_visible } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/DOMHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -11,7 +11,6 @@ var epsilon;
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
var controller = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/controller.jsm"
|
||||
);
|
||||
|
|
|
@ -8,7 +8,6 @@ var folder;
|
|||
var messenger;
|
||||
var epsilon;
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
var controller = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/controller.jsm"
|
||||
);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
add_attachments,
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { open_message_from_file } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
get_msg_source,
|
||||
open_compose_new_mail,
|
||||
|
@ -93,7 +91,8 @@ add_task(function test_paste_file_urls() {
|
|||
return OS.File.setDates(dest, null, null);
|
||||
})
|
||||
.then(function() {
|
||||
tmpFile = os.getFileForPath(dest);
|
||||
tmpFile = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
tmpFile.initWithPath(dest);
|
||||
Assert.ok(tmpFile.exists(), "tmpFile's not there at " + dest);
|
||||
|
||||
tmpFileURL = fileHandler.getURLSpecFromFile(tmpFile);
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
var utils = ChromeUtils.import("resource://testing-common/mozmill/utils.jsm");
|
||||
|
||||
var {
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { open_message_from_file } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
get_msg_source,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
var utils = ChromeUtils.import("resource://testing-common/mozmill/utils.jsm");
|
||||
|
||||
var { close_compose_window, open_compose_new_mail } = ChromeUtils.import(
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
get_msg_source,
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { close_compose_window, open_compose_with_reply } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/ComposeHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -25,8 +25,6 @@ var elib = ChromeUtils.import(
|
|||
var mozmill = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/mozmill.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
open_compose_with_forward,
|
||||
|
@ -326,9 +324,9 @@ function saveAsEMLFile(msgNo) {
|
|||
Ci.nsIMessenger
|
||||
);
|
||||
let profD = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
||||
let file = os.getFileForPath(
|
||||
os.abspath("./content-policy-test-" + msgNo + ".eml", profD)
|
||||
);
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
file.initWithFile(profD);
|
||||
file.append("content-policy-test-" + msgNo + ".eml");
|
||||
messenger.saveAs(
|
||||
msgHdr.folder.getUriForMsg(msgHdr),
|
||||
true,
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
be_in_folder,
|
||||
create_folder,
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elementslib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { gMockExtProtSvcReg } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/ContentTabHelpers.jsm"
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { open_message_from_file } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -10,7 +10,6 @@ var { MailServices } = ChromeUtils.import(
|
|||
var elib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
be_in_folder,
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { open_message_from_file } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
var elementslib = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/elementslib.jsm"
|
||||
);
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { get_cards_in_all_address_books_for_email } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/AddressBookHelpers.jsm"
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var { open_message_from_file } = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
|
|
@ -11,8 +11,6 @@ const EXPORTED_SYMBOLS = [
|
|||
"collectFiles",
|
||||
];
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var fdh = ChromeUtils.import(
|
||||
"resource://testing-common/mozmill/FolderDisplayHelpers.jsm"
|
||||
);
|
||||
|
@ -36,8 +34,9 @@ var kDefaults = {
|
|||
};
|
||||
|
||||
function getFile(aFilename, aRoot) {
|
||||
let path = os.getFileForPath(aRoot);
|
||||
let file = os.getFileForPath(os.abspath(aFilename, path));
|
||||
var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
|
||||
file.initWithPath(aRoot);
|
||||
file.append(aFilename);
|
||||
Assert.ok(file.exists, "File " + aFilename + " does not exist.");
|
||||
return file;
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var os = ChromeUtils.import("resource://testing-common/mozmill/os.jsm");
|
||||
|
||||
var {
|
||||
close_compose_window,
|
||||
get_msg_source,
|
||||
|
|
Загрузка…
Ссылка в новой задаче