summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_backgroundfilesaver.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_backgroundfilesaver.js')
-rw-r--r--netwerk/test/unit/test_backgroundfilesaver.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/netwerk/test/unit/test_backgroundfilesaver.js b/netwerk/test/unit/test_backgroundfilesaver.js
index eeceab9bf8..58382fa98b 100644
--- a/netwerk/test/unit/test_backgroundfilesaver.js
+++ b/netwerk/test/unit/test_backgroundfilesaver.js
@@ -213,11 +213,7 @@ function promiseCopyToSaver(aSourceString, aSaverOutputStream, aCloseWhenDone) {
* @resolves When the operation completes with a success code.
* @rejects With an exception, if the operation fails.
*/
-function promisePumpToSaver(
- aSourceString,
- aSaverStreamListener,
- aCloseWhenDone
-) {
+function promisePumpToSaver(aSourceString, aSaverStreamListener) {
return new Promise((resolve, reject) => {
aSaverStreamListener.QueryInterface(Ci.nsIStreamListener);
let inputStream = new StringInputStream(
@@ -603,7 +599,7 @@ add_task(async function test_enableAppend_hash() {
add_task(async function test_finish_only() {
// This test checks creating the object and doing nothing.
let saver = new BackgroundFileSaverOutputStream();
- function onTargetChange(aTarget) {
+ function onTargetChange() {
do_throw("Should not receive the onTargetChange notification.");
}
let completionPromise = promiseSaverComplete(saver, onTargetChange);