This commit is contained in:
Steve Conover 2011-02-28 22:36:31 -08:00
parent b9cbd3c5a0
commit 4e5083d570

View File

@ -1,19 +1,11 @@
jasmine.TrivialConsoleReporter = function(print) { jasmine.TrivialConsoleReporter = function(print) {
var ansi = { //inspired by mhevery's jasmine-node reporter
green: '\033[32m', //https://github.com/mhevery/jasmine-node
red: '\033[31m',
yellow: '\033[33m',
none: '\033[0m'
};
var defaultColumnsPerLine = 50; var defaultColumnsPerLine = 50,
ansi = { green: '\033[32m', red: '\033[31m', yellow: '\033[33m', none: '\033[0m' },
var language = { language = { spec:"spec", assertion:"assertion", failure:"failure" };
spec:"spec",
assertion:"assertion",
failure:"failure"
};
function coloredStr(color, str) { return ansi[color] + str + ansi.none; } function coloredStr(color, str) { return ansi[color] + str + ansi.none; }
@ -35,7 +27,6 @@ jasmine.TrivialConsoleReporter = function(print) {
return arr; return arr;
} }
function indent(str, spaces) { var lines = str.split("\n"); function indent(str, spaces) { var lines = str.split("\n");
var newArr = [] var newArr = []
for(var i=0; i<lines.length; i++) { for(var i=0; i<lines.length; i++) {