Bug 1041708 - Structured logging seems to eat test case name and message if a single test is executed. r=ahal

This commit is contained in:
Ahmed Kachkach 2014-07-21 13:11:00 +02:00
parent 7c95173e9a
commit ba057e2cba

View File

@ -362,7 +362,8 @@ SimpleTest._logResult = function (test, passInfo, failInfo) {
result.expected,
diagnostic);
} else if (typeof dump === "function") {
var debugMsg = [url, result.message, diagnostic].join(' | ');
var diagMessage = test.name + (test.diag ? " - " + test.diag : "");
var debugMsg = [result.message, url, diagMessage].join(' | ');
dump(debugMsg + "\n");
} else {
// Non-Mozilla browser? Just do nothing.
@ -370,7 +371,7 @@ SimpleTest._logResult = function (test, passInfo, failInfo) {
};
SimpleTest.info = function(name, message) {
var log = name + ' | ' + message;
var log = message ? name + ' | ' + message : name;
if (parentRunner) {
parentRunner.structuredLogger.info(log);
} else {