Bug 896811 - Test output looks very strange, and is useless for failing tests. r=jwalker
authorDave Camp <dcamp@mozilla.com>
Wed, 07 Aug 2013 11:01:49 -0700
changeset 154575 f8879459be3549eb139cabf78c58ffbb99c228e9
parent 154574 85c1aed7e525f5dad8d52775e203f099ea2c72ed
child 154576 ab34f6dd82d1d8f8c7cd4fc6bb9f7aff9209e869
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker
bugs896811
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 896811 - Test output looks very strange, and is useless for failing tests. r=jwalker
toolkit/devtools/Console.jsm
--- a/toolkit/devtools/Console.jsm
+++ b/toolkit/devtools/Console.jsm
@@ -377,17 +377,17 @@ function getStack(aFrame, aMaxDepth = 0)
  *        Array of trace objects as created by parseStack()
  * @return {string} Multi line report of the stack trace
  */
 function formatTrace(aTrace) {
   let reply = "";
   aTrace.forEach(function(frame) {
     reply += fmt(frame.filename, 20, 20, { truncate: "start" }) + " " +
              fmt(frame.lineNumber, 5, 5) + " " +
-             fmt(frame.functionName, 0, 75, { truncate: "center" }) + "\n";
+             fmt(frame.functionName, 75, 0, { truncate: "center" }) + "\n";
   });
   return reply;
 }
 
 /**
  * Create a new timer by recording the current time under the specified name.
  *
  * @param {string} aName