From f289589830a0deaec0169672391b7b7ace6bc1cc Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Sun, 18 Oct 2009 18:32:45 +0000 Subject: Issue with upgrading should be fixed git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@276 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/unittest/testcases.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/content/unittest') 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 + "'"}; }, -- cgit v1.2.3-70-g09d2