aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/unittest
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/unittest')
-rw-r--r--chrome/content/unittest/testcases.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/content/unittest/testcases.js b/chrome/content/unittest/testcases.js
index ece1a67..0ce071e 100644
--- a/chrome/content/unittest/testcases.js
+++ b/chrome/content/unittest/testcases.js
@@ -15,7 +15,7 @@ var tests = {
}
redirectUrl = redirectUrl.substr(0, redirectUrl.length-1);
}
- var redirect = new Redirect(null, pattern, null, redirectUrl, Redirect.WILDCARD, null);
+ var redirect = new Redirect(null, pattern, redirectUrl, Redirect.WILDCARD);
var result = redirect.getMatch(url);
return { passed: result.isMatch && (result.redirectTo == expected), message : "Expected '" + expected + "', actual was '" + result.redirectTo + "'"};
},
@@ -53,7 +53,7 @@ var tests = {
}
redirectUrl = redirectUrl.substr(0, redirectUrl.length-1);
}
- var redirect = new Redirect(null, pattern, null, redirectUrl, Redirect.REGEX, null);
+ var redirect = new Redirect(null, pattern, redirectUrl, Redirect.REGEX, null, null);
var result = redirect.getMatch(url);
return { passed: result.isMatch && result.redirectTo == expected, message : "Expected '" + expected + "', actual was '" + result.redirectTo + "'"};
},