o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371404964.276761:@value"{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"%teaspoon/qunit/reporters/html.js; FI"
pathname; FI"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teaspoon/qunit/reporters/html.coffee; FI"content_type; FI"application/javascript; FI"
mtime; FI"2013-06-16T11:48:01-06:00; FI"length; FiCI"digest; F"%77496b5bd0c18da1d99e5aa800b0c19eI"source; FI"C(function() {
var _ref, _ref1,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.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; };
Teaspoon.Reporters.HTML = (function(_super) {
__extends(HTML, _super);
function HTML(env) {
this.reportRunnerResults = __bind(this.reportRunnerResults, this);
this.reportSpecResults = __bind(this.reportSpecResults, this); HTML.__super__.constructor.apply(this, arguments);
env.log(this.reportSpecResults);
env.testDone(this.reportSpecResults);
env.done(this.reportRunnerResults);
this.currentAssertions = [];
this.reportRunnerStarting();
}
HTML.prototype.reportRunnerStarting = function() {
this.total.exist = null;
return this.setText("stats-duration", "...");
};
HTML.prototype.reportSpecResults = function(spec) {
if (typeof spec.total !== "number") {
this.currentAssertions.push(spec);
return;
}
spec.assertions = this.currentAssertions;
this.currentAssertions = [];
this.reportSpecStarting(spec);
return HTML.__super__.reportSpecResults.call(this, spec);
};
HTML.prototype.reportRunnerResults = function(result) {
this.total.exist = this.total.run = result.total;
return HTML.__super__.reportRunnerResults.apply(this, arguments);
};
HTML.prototype.readConfig = function() {
HTML.__super__.readConfig.apply(this, arguments);
return QUnit.config.notrycatch = this.config["use-catch"];
};
HTML.prototype.envInfo = function() {
return "qunit 1.11.0";
};
return HTML;
})(Teaspoon.Reporters.HTML);
Teaspoon.Reporters.HTML.SpecView = (function(_super) {
__extends(SpecView, _super);
function SpecView() {
_ref = SpecView.__super__.constructor.apply(this, arguments);
return _ref;
}
SpecView.prototype.buildErrors = function() {
var div, error, html, _i, _len, _ref1;
div = this.createEl("div");
html = "";
_ref1 = this.spec.errors();
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
error = _ref1[_i];
html += "" + error.message + "
" + (this.htmlSafe(error.stack || "Stack trace unavailable")) + "
";
}
div.innerHTML = html;
return this.append(div);
};
SpecView.prototype.buildParent = function() {
var parent, view;
parent = this.spec.parent;
if (!parent) {
return this.reporter;
}
if (this.views.suites[parent.description]) {
return this.views.suites[parent.description];
} else {
view = new Teaspoon.Reporters.HTML.SuiteView(parent, this.reporter);
return this.views.suites[parent.description] = view;
}
};
return SpecView;
})(Teaspoon.Reporters.HTML.SpecView);
Teaspoon.Reporters.HTML.FailureView = (function(_super) {
__extends(FailureView, _super);
function FailureView() {
_ref1 = FailureView.__super__.constructor.apply(this, arguments);
return _ref1;
}
FailureView.prototype.build = function() {
var error, html, _i, _len, _ref2;
FailureView.__super__.build.call(this, "spec");
html = "