mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 473506 - Synchronize BrowserChrome and Mochitest log formats; (Bv1a) BrowserChrome: always use 'Passed' and 'Failed' idents
r=rcampbell
This commit is contained in:
parent
75be6f9e1e
commit
9308a66ade
@ -74,13 +74,15 @@ 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("\tPass: " + passCount + "\n\tFail: " + failCount + "\n\tTodo: " + todoCount + "\n");
|
||||
|
||||
this.dumper.dump("\tPassed: " + passCount + "\n" +
|
||||
"\tFailed: " + 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?");
|
||||
|
Loading…
Reference in New Issue
Block a user