jasmine-headless-webkit/vendor/assets/javascripts/jasmine.HeadlessReporter.Console.js
John Bintz 282ed40264 merge
2012-01-11 09:58:47 -05:00

27 lines
1.0 KiB
JavaScript

(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; };
jasmine.HeadlessReporter.Console = (function() {
__extends(Console, jasmine.HeadlessReporter.ConsoleBase);
function Console() {
this.displayFailure = __bind(this.displayFailure, this);
this.displaySuccess = __bind(this.displaySuccess, this);
Console.__super__.constructor.apply(this, arguments);
}
Console.prototype.displaySuccess = function(spec) {
return this.print('.'.foreground('green'));
};
Console.prototype.displayFailure = function(spec) {
return this.print('F'.foreground('red'));
};
return Console;
})();
}).call(this);