summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_httpcancel.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_httpcancel.js')
-rw-r--r--netwerk/test/unit/test_httpcancel.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/netwerk/test/unit/test_httpcancel.js b/netwerk/test/unit/test_httpcancel.js
index 04958ffd2b..9ed17235cd 100644
--- a/netwerk/test/unit/test_httpcancel.js
+++ b/netwerk/test/unit/test_httpcancel.js
@@ -27,7 +27,7 @@ var ReferrerInfo = Components.Constructor(
var observer = {
QueryInterface: ChromeUtils.generateQI(["nsIObserver"]),
- observe(subject, topic, data) {
+ observe(subject) {
subject = subject.QueryInterface(Ci.nsIRequest);
subject.cancelWithReason(Cr.NS_BINDING_ABORTED, reason);
@@ -83,7 +83,7 @@ let cancelDuringOnStartListener = {
do_throw("Should not get any data!");
},
- onStopRequest: function test_onStopR(request, status) {
+ onStopRequest: function test_onStopR() {
this.resolved();
},
};
@@ -92,7 +92,7 @@ var cancelDuringOnDataListener = {
data: "",
channel: null,
receivedSomeData: null,
- onStartRequest: function test_onStartR(request, ctx) {
+ onStartRequest: function test_onStartR(request) {
Assert.equal(request.status, Cr.NS_OK);
},
@@ -106,7 +106,7 @@ var cancelDuringOnDataListener = {
}
},
- onStopRequest: function test_onStopR(request, ctx, status) {
+ onStopRequest: function test_onStopR(request) {
Assert.ok(this.data.includes("a"), `data: ${this.data}`);
Assert.equal(request.status, Cr.NS_BINDING_ABORTED);
this.resolved();
@@ -195,7 +195,7 @@ add_task(async function test_cancel_during_onData() {
var cancelAfterOnStopListener = {
data: "",
channel: null,
- onStartRequest: function test_onStartR(request, ctx) {
+ onStartRequest: function test_onStartR(request) {
Assert.equal(request.status, Cr.NS_OK);
},
@@ -204,7 +204,7 @@ var cancelAfterOnStopListener = {
this.data += string;
},
- onStopRequest: function test_onStopR(request, status) {
+ onStopRequest: function test_onStopR(request) {
info("onStopRequest");
Assert.equal(request.status, Cr.NS_OK);
this.resolved();
@@ -233,7 +233,7 @@ add_task(async function test_cancel_after_onStop() {
// PATHS
// /failtest
-function failtest(metadata, response) {
+function failtest() {
do_throw("This should not be reached");
}