jasmine-headless-webkit/vendor/assets/javascripts/jasmine.HeadlessReporter.Console.js

27 lines
1.0 KiB
JavaScript
Raw Normal View History

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; };
jasmine.HeadlessReporter.Console = (function() {
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
}
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
};
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
};
return Console;
2011-10-27 00:05:05 +00:00
})();
2011-12-12 17:22:32 +00:00
}).call(this);