Backing out bug 473506 now that 473259 was already backed out, to get rid of orange.

This commit is contained in:
Gijs Kruitbosch 2009-10-29 13:21:12 +01:00
parent 513478ce73
commit 7229ff20dc

View File

@ -74,15 +74,13 @@ Tester.prototype = {
if (this.tests.length) {
this.dumper.dump("\nBrowser Chrome Test Summary\n");
function sum(a,b) a+b;
var passCount = this.tests.map(function (f) f.passCount).reduce(sum);
var failCount = this.tests.map(function (f) f.failCount).reduce(sum);
var todoCount = this.tests.map(function (f) f.todoCount).reduce(sum);
this.dumper.dump("\tPassed: " + passCount + "\n" +
"\tFailed: " + failCount + "\n" +
"\tTodo: " + todoCount + "\n");
this.dumper.dump("\tPass: " + passCount + "\n\tFail: " + failCount + "\n\tTodo: " + todoCount + "\n");
} else {
this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " +
"No tests to run. Did you pass an invalid --test-path?");