Bug 623134: Add logging for the browser_updatessl.js intermittent failure. rs=dolske

This commit is contained in:
Dave Townsend 2011-05-12 20:00:21 -07:00
parent 1b63f405ae
commit b236bc4009
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ function add_update_test(mainURL, redirectURL, expectedStatus) {
}
function run_update_tests(callback) {
function run_next_update_test(pos) {
function run_next_update_test() {
if (gTests.length == 0) {
callback();
return;
@ -71,7 +71,7 @@ function run_update_tests(callback) {
AddonUpdateChecker.checkForUpdates("addon1@tests.mozilla.org", "extension",
null, url, {
onUpdateCheckComplete: function(updates) {
is(updates.length, 1);
is(updates.length, 1, "Should be the right number of results");
is(SUCCESS, expectedStatus, message);
info("Update test ran in " + (Date.now() - gLast) + "ms");
run_next_update_test();

View File

@ -1,4 +1,5 @@
function handleRequest(request, response) {
dump("*** Received redirect for " + request.queryString + "\n");
response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
response.setHeader("Location", request.queryString, false);
}