aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/unittest
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-18 18:32:45 +0000
committerEinar Egilsson2009-10-18 18:32:45 +0000
commitf289589830a0deaec0169672391b7b7ace6bc1cc (patch)
tree2d018641f2321c55d858efb54433dfaacf679bb1 /chrome/content/unittest
parent3c1f07fa816bf348555b96b5b7df9a29675de09a (diff)
Issue with upgrading should be fixed
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@276 119bf307-c92d-0410-89bd-8f53e6181181
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 + "'"};
},