Bug 701632 - Add some newlines to dump() calls in browser-test.js. r=jmaher

This commit is contained in:
Cameron McCormack 2011-11-12 21:46:07 +11:00
Родитель ac8a886cca
Коммит d9e6505ae6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -135,7 +135,7 @@ Tester.prototype = {
if (this.currentTest)
this.currentTest.addResult(new testResult(false, msg, "", false));
else
this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " + msg + "\n");
this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " + msg.replace(/\n$/, "") + "\n");
win.close();
}
@ -168,7 +168,7 @@ Tester.prototype = {
"\tTodo: " + todoCount + "\n");
} else {
this.dumper.dump("TEST-UNEXPECTED-FAIL | (browser-test.js) | " +
"No tests to run. Did you pass an invalid --test-path?");
"No tests to run. Did you pass an invalid --test-path?\n");
}
this.dumper.dump("\n*** End BrowserChrome Test Results ***\n");
@ -188,7 +188,7 @@ Tester.prototype = {
if (this.currentTest)
this.currentTest.addResult(new testMessage(msg));
else
this.dumper.dump("TEST-INFO | (browser-test.js) | " + msg);
this.dumper.dump("TEST-INFO | (browser-test.js) | " + msg + "\n");
} catch (ex) {
// Swallow exception so we don't lead to another error being reported,
// throwing us into an infinite loop