diff --git a/testing/mochitest/browser-harness.xul b/testing/mochitest/browser-harness.xul index 1f3369df136d39..5ac63be1df7846 100644 --- a/testing/mochitest/browser-harness.xul +++ b/testing/mochitest/browser-harness.xul @@ -168,8 +168,25 @@ } var path = _entityEncode(this.path); var html = this.results.map(function (t) { - var classname = t.info ? "info" : "result " + (t.pass ? "passed" : "failed"); - var text = t.result + " | " + path + " | " + _entityEncode(t.msg); + var classname = "result "; + var result = "TEST-"; + if (t.info) { + classname = "info"; + result += "INFO"; + } + else if (t.pass) { + classname += "passed"; + if (t.todo) + result += "KNOWN-FAIL"; + else + result += "PASS"; + } + else { + classname += "failed"; + result += "UNEXPECTED-" + t.status; + } + var message = t.name + (t.msg ? " - " + t.msg : ""); + var text = result + " | " + path + " | " + _entityEncode(message); if (!t.info && !t.pass) { return '
' + text + " NEXT ERROR
";