зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1776304 - Port osfile.jsm usage to IOUtils in browser/components/downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D150203
This commit is contained in:
Родитель
fec6715f25
Коммит
356649ab06
|
@ -3,8 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
|
||||
|
||||
let gMimeSvc = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
|
||||
let gHandlerSvc = Cc["@mozilla.org/uriloader/handler-service;1"].getService(
|
||||
Ci.nsIHandlerService
|
||||
|
@ -33,7 +31,7 @@ async function createDownloadFile() {
|
|||
}
|
||||
info("Created download directory: " + gDownloadDir);
|
||||
TestFiles.txt = await createDownloadedFile(
|
||||
OS.Path.join(gDownloadDir, "downloaded.txt"),
|
||||
PathUtils.join(gDownloadDir, "downloaded.txt"),
|
||||
"Test file"
|
||||
);
|
||||
info("Created downloaded text file at:" + TestFiles.txt.path);
|
||||
|
|
Загрузка…
Ссылка в новой задаче