diff options
author | Einar Egilsson | 2009-10-18 18:32:45 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-18 18:32:45 +0000 |
commit | f289589830a0deaec0169672391b7b7ace6bc1cc (patch) | |
tree | 2d018641f2321c55d858efb54433dfaacf679bb1 /chrome/content/unittest/testcases.js | |
parent | 3c1f07fa816bf348555b96b5b7df9a29675de09a (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/testcases.js')
-rw-r--r-- | chrome/content/unittest/testcases.js | 4 |
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 + "'"};
},
|