TrivialConsoleReporter refactor & fixes. No longer limitied to 50 columns of dots.

This commit is contained in:
Davis W. Frank
2011-05-16 08:08:12 -07:00
parent b02aa9840a
commit 1d65d56a92
4 changed files with 407 additions and 384 deletions

View File

@@ -29,9 +29,9 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
return arr;
}
function indent(str, spaces) { var lines = str.split("\n");
function indent(str, spaces) { var lines = (str || '').split("\n");
var newArr = [];
for(var i=0; i<lines.length; i++) {
for(var i = 0; i < lines.length; i++) {
newArr.push(repeat(" ", spaces).join("") + lines[i]);
}
return newArr.join("\n");
@@ -97,7 +97,7 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
} else {
redF();
}
startNewLineIfNecessary();
// startNewLineIfNecessary();
};
this.suiteResults = [];