From c1d2718beaa7eaff866031303ae6b5c94467f9f9 Mon Sep 17 00:00:00 2001 From: Steve Conover Date: Mon, 28 Feb 2011 13:46:30 -0800 Subject: [PATCH] red F, duh --- spec/suites/TrivialNodeReporterSpec.js | 2 +- src/node/TrivialNodeReporter.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/suites/TrivialNodeReporterSpec.js b/spec/suites/TrivialNodeReporterSpec.js index 35823fd..2140a13 100644 --- a/spec/suites/TrivialNodeReporterSpec.js +++ b/spec/suites/TrivialNodeReporterSpec.js @@ -72,7 +72,7 @@ describe("TrivialNodeReporter", function() { this.reporter.reportSpecResults(failingSpec); expect(this.fakeSys.getOutput()).toEqual( - red(".") + red("F") ); }); diff --git a/src/node/TrivialNodeReporter.js b/src/node/TrivialNodeReporter.js index 2768e6f..dd68565 100644 --- a/src/node/TrivialNodeReporter.js +++ b/src/node/TrivialNodeReporter.js @@ -35,15 +35,16 @@ jasmine.TrivialNodeReporter.prototype._greenStr = function(str) { return this._c jasmine.TrivialNodeReporter.prototype._redStr = function(str) { return this._coloredStr("red", str); }; jasmine.TrivialNodeReporter.prototype._yellowStr = function(str) { return this._coloredStr("yellow", str); }; -jasmine.TrivialNodeReporter.prototype._redDot = function(str) { return this.sys.print(this._redStr(".")); }; + jasmine.TrivialNodeReporter.prototype._greenDot = function(str) { return this.sys.print(this._greenStr(".")); }; +jasmine.TrivialNodeReporter.prototype._redF = function(str) { return this.sys.print(this._redStr("F")); }; jasmine.TrivialNodeReporter.prototype._newLine = function(str) { return this.sys.print("\n"); }; jasmine.TrivialNodeReporter.prototype.reportSpecResults = function(spec) { if (spec.results().passed()) { this._greenDot(); } else { - this._redDot(); + this._redF(); } };