BrowserChrome: always use 'Passed' and 'Failed' idents
authorSerge Gautherie <sgautherie.bz@free.fr>
Thu, 29 Oct 2009 01:29:41 +0100
changeset 34261 1d95bcb9b00f7d789f6771dbca44b967adad843c
parent 34260 17addc6beaed4f1a0c00b9ab311ba6fa06a7a196
child 34262 fa0a3e9b1f54d0b2b27ca1c7324633fa095087e8
push idunknown
push userunknown
push dateunknown
bugs473506
milestone1.9.3a1pre
BrowserChrome: always use 'Passed' and 'Failed' idents Bug 473506 - Synchronize BrowserChrome and Mochitest log formats; (Bv1a) r=rcampbell
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -69,23 +69,25 @@ Tester.prototype = {
       this.finish();
   },
 
   finish: function Tester_finish(aSkipSummary) {
     this._cs.unregisterListener(this);
 
     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?");
     }
 
     this.dumper.dump("\n*** End BrowserChrome Test Results ***\n");
 
     this.dumper.done();