Bug 701632 - Followup fix (pushed without refreshing patch). r=jmaher
authorCameron McCormack <cam@mcc.id.au>
Sat, 12 Nov 2011 21:52:39 +1100
changeset 80203 e5c077ef3d19ee0120ad5d568d0ce62a30f1dec6
parent 80202 80154fc0c58293a003f248c754c9fe308dea1195
child 80204 e804728b128b5ddca05ce09bfee4ae7b49be466d
push id323
push userrcampbell@mozilla.com
push dateTue, 15 Nov 2011 21:58:36 +0000
treeherderfx-team@3ea216303184 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs701632
milestone11.0a1
Bug 701632 - Followup fix (pushed without refreshing patch). r=jmaher
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -130,17 +130,17 @@ Tester.prototype = {
         case null:
           type = "unknown window";
           break;
         }
         let msg = baseMsg.replace("{elt}", type);
         if (this.currentTest)
           this.currentTest.addResult(new testResult(false, msg, "", false));
         else
-          this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " + msg.replace(/\n$/, "") + "\n");
+          this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " + msg + "\n");
 
         win.close();
       }
     }
 
     // Make sure the window is raised before each test.
     this.SimpleTest.waitForFocus(aCallback);
   },
@@ -183,17 +183,17 @@ Tester.prototype = {
   },
 
   observe: function Tester_observe(aConsoleMessage) {
     try {
       var msg = "Console message: " + aConsoleMessage.message;
       if (this.currentTest)
         this.currentTest.addResult(new testMessage(msg));
       else
-        this.dumper.dump("TEST-INFO | (browser-test.js) | " + msg + "\n");
+        this.dumper.dump("TEST-INFO | (browser-test.js) | " + msg.replace(/\n$/, "") + "\n");
     } catch (ex) {
       // Swallow exception so we don't lead to another error being reported,
       // throwing us into an infinite loop
     }
   },
 
   nextTest: function Tester_nextTest() {
     if (this.currentTest) {