summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_redirect_loop.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/unit/test_redirect_loop.js')
-rw-r--r--netwerk/test/unit/test_redirect_loop.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/netwerk/test/unit/test_redirect_loop.js b/netwerk/test/unit/test_redirect_loop.js
index f25bee18c5..f599f2014e 100644
--- a/netwerk/test/unit/test_redirect_loop.js
+++ b/netwerk/test/unit/test_redirect_loop.js
@@ -25,7 +25,7 @@ var relativeLoopURI = "http://localhost:" + PORT + relativeLoopPath;
var emptyLoopPath = "/empty/";
var emptyLoopURI = "http://localhost:" + PORT + emptyLoopPath;
-function make_channel(url, callback, ctx) {
+function make_channel(url) {
return NetUtil.newChannel({ uri: url, loadUsingSystemPrincipal: true });
}
@@ -55,7 +55,7 @@ function emptyLoopHandler(metadata, response) {
response.finish();
}
-function testFullLoop(request, buffer) {
+function testFullLoop(request) {
Assert.equal(request.status, Cr.NS_ERROR_REDIRECT_LOOP);
var chan = make_channel(relativeLoopURI);
@@ -64,14 +64,14 @@ function testFullLoop(request, buffer) {
);
}
-function testRelativeLoop(request, buffer) {
+function testRelativeLoop(request) {
Assert.equal(request.status, Cr.NS_ERROR_REDIRECT_LOOP);
var chan = make_channel(emptyLoopURI);
chan.asyncOpen(new ChannelListener(testEmptyLoop, null, CL_EXPECT_FAILURE));
}
-function testEmptyLoop(request, buffer) {
+function testEmptyLoop(request) {
Assert.equal(request.status, Cr.NS_ERROR_REDIRECT_LOOP);
httpServer.stop(do_test_finished);