2011-12-12 17:22:32 +00:00
|
|
|
(function() {
|
|
|
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
|
2011-11-22 15:36:42 +00:00
|
|
|
|
2011-12-30 15:47:08 +00:00
|
|
|
jasmine.HeadlessReporter.Console = (function() {
|
2011-11-22 15:36:42 +00:00
|
|
|
|
2012-01-11 14:58:47 +00:00
|
|
|
__extends(Console, jasmine.HeadlessReporter.ConsoleBase);
|
2011-12-12 17:22:32 +00:00
|
|
|
|
2012-01-10 22:14:37 +00:00
|
|
|
function Console() {
|
|
|
|
this.displayFailure = __bind(this.displayFailure, this);
|
|
|
|
this.displaySuccess = __bind(this.displaySuccess, this);
|
|
|
|
Console.__super__.constructor.apply(this, arguments);
|
2011-10-27 00:05:05 +00:00
|
|
|
}
|
2011-11-22 15:36:42 +00:00
|
|
|
|
2012-01-10 22:14:37 +00:00
|
|
|
Console.prototype.displaySuccess = function(spec) {
|
|
|
|
return this.print('.'.foreground('green'));
|
2011-10-27 00:05:05 +00:00
|
|
|
};
|
2011-11-22 15:36:42 +00:00
|
|
|
|
2012-01-10 22:14:37 +00:00
|
|
|
Console.prototype.displayFailure = function(spec) {
|
|
|
|
return this.print('F'.foreground('red'));
|
2011-12-12 17:22:32 +00:00
|
|
|
};
|
|
|
|
|
2011-12-30 15:47:08 +00:00
|
|
|
return Console;
|
2011-11-22 15:36:42 +00:00
|
|
|
|
2011-10-27 00:05:05 +00:00
|
|
|
})();
|
2011-12-12 17:22:32 +00:00
|
|
|
|
|
|
|
}).call(this);
|