summaryrefslogtreecommitdiffstats
path: root/modules/libjar/test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/libjar/test')
-rw-r--r--modules/libjar/test/mochitest/test_bug1173171.html2
-rw-r--r--modules/libjar/test/unit/test_empty_jar_telemetry.js4
-rw-r--r--modules/libjar/test/unit/test_jarchannel.js6
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/libjar/test/mochitest/test_bug1173171.html b/modules/libjar/test/mochitest/test_bug1173171.html
index 6f18513f86..d00825e6f6 100644
--- a/modules/libjar/test/mochitest/test_bug1173171.html
+++ b/modules/libjar/test/mochitest/test_bug1173171.html
@@ -21,7 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1173171
// A simple async XMLHttpRequest call.
// Returns a promise with the response.
let xhr = function(method, url, responseType) {
- return new Promise(function(resolve, reject) {
+ return new Promise(function(resolve) {
let xhrInstance = new XMLHttpRequest();
xhrInstance.open(method, url, true);
xhrInstance.onload = function() {
diff --git a/modules/libjar/test/unit/test_empty_jar_telemetry.js b/modules/libjar/test/unit/test_empty_jar_telemetry.js
index 895e88ff65..45bf83a113 100644
--- a/modules/libjar/test/unit/test_empty_jar_telemetry.js
+++ b/modules/libjar/test/unit/test_empty_jar_telemetry.js
@@ -67,7 +67,7 @@ Listener.prototype = {
do_throw(ex);
}
},
- onStartRequest(request) {
+ onStartRequest() {
this.gotStartRequest = true;
},
onStopRequest(request, status) {
@@ -98,7 +98,7 @@ add_task(async function test_empty_jar_file_async() {
await new Promise(resolve => {
chan.asyncOpen(
- new Listener(function (l) {
+ new Listener(function () {
Assert.ok(chan.contentLength == 0);
resolve();
})
diff --git a/modules/libjar/test/unit/test_jarchannel.js b/modules/libjar/test/unit/test_jarchannel.js
index 9d3a571b63..239ea15d7e 100644
--- a/modules/libjar/test/unit/test_jarchannel.js
+++ b/modules/libjar/test/unit/test_jarchannel.js
@@ -45,7 +45,7 @@ Listener.prototype = {
do_throw(ex);
}
},
- onStartRequest(request) {
+ onStartRequest() {
this.gotStartRequest = true;
},
onStopRequest(request, status) {
@@ -130,7 +130,7 @@ add_test(function testSyncNested() {
/**
* Basic reading test for asynchronously opened, nested jar channels
*/
-add_test(function testAsyncNested(next) {
+add_test(function testAsyncNested() {
var uri = "jar:" + jarBase + "/inner40.zip!/foo";
var chan = NetUtil.newChannel({ uri, loadUsingSystemPrincipal: true });
chan.asyncOpen(
@@ -184,7 +184,7 @@ add_test(function testAsyncCloseUnlocks() {
var chan = NetUtil.newChannel({ uri, loadUsingSystemPrincipal: true });
chan.asyncOpen(
- new Listener(function (l) {
+ new Listener(function () {
Assert.ok(chan.contentLength > 0);
// Drop any jar caches