bug 379327 - have browser chrome tests print test filename in FAIL lines. r=gavin
--- a/testing/mochitest/browser-harness.xul
+++ b/testing/mochitest/browser-harness.xul
@@ -111,17 +111,22 @@
},
get todoCount() {
return this.tests.filter(function (t) t.todo && t.pass).length;
},
get failCount() {
return this.tests.filter(function (t) !t.pass).length;
},
get log() {
- return this.tests.map(function (t) t.msg).join("\n");
+ var path = this.path;
+ return this.tests.map(function (t) {
+ if (!t.pass)
+ return t.msg + " - " + path;
+ return t.msg;
+ }).join("\n");
}
};
// Returns an array of chrome:// URLs to all the test files
function listTests() {
const Cc = Components.classes; const Ci = Components.interfaces;
var testsDir = getChromeDir();