o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356300832.095121:@value"{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"-teabag/base/reporters/html/suite_view.js; FI"
pathname; FI"i/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee; FI"content_type; FI"application/javascript; FI"
mtime; FI"2012-12-23T15:13:11-07:00; FI"length; FiI"digest; F"%c702d7944602c133d440384794c6fb19I"source; FI"(function() {
var __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; };
Teabag.Reporters.HTML.SuiteView = (function(_super) {
var viewId;
__extends(SuiteView, _super);
viewId = 0;
function SuiteView(suite, reporter) {
this.suite = suite;
this.reporter = reporter;
this.views = this.reporter.views;
this.suite.viewId = viewId += 1;
this.views.suites[this.suite.viewId] = this;
this.suite = new Teabag.Suite(suite);
SuiteView.__super__.constructor.apply(this, arguments);
}
SuiteView.prototype.build = function() {
SuiteView.__super__.build.call(this, "suite");
this.el.innerHTML = "
";
this.parentView = this.buildParent();
return this.parentView.append(this.el);
};
SuiteView.prototype.buildParent = function() {
var parent, view;
parent = this.suite.parent;
if (!parent) {
return this.reporter;
}
if (parent.viewId) {
return this.views.suites[parent.viewId];
} else {
view = new Teabag.Reporters.HTML.SuiteView(parent, this.reporter);
return this.views.suites[view.suite.viewId] = view;
}
};
SuiteView.prototype.append = function(el) {
if (!this.ol) {
SuiteView.__super__.append.call(this, this.ol = this.createEl("ol"));
}
return this.ol.appendChild(el);
};
SuiteView.prototype.updateState = function(state) {
var _base;
if (this.state === "failed") {
return;
}
this.el.className = "" + (this.el.className.replace(/\s?state-\w+/, "")) + " state-" + state;
if (typeof (_base = this.parentView).updateState === "function") {
_base.updateState(state);
}
return this.state = state;
};
return SuiteView;
})(Teabag.Reporters.BaseView);
}).call(this);
; TI"dependency_digest; F"%3f03ad1f92150c30fb50ad268ac49b33I"required_paths; F[I"i/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee; FI"dependency_paths; F[{I" path; FI"i/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee; FI"
mtime; FI"2012-12-23T15:13:11-07:00; FI"digest; F"%fa964355aeeb57aa8164ab442fef9a04I"
_version; F"%6776f581a4329e299531e1d52aa59832