{I" class:EFI"ProcessedAsset;FI"logical_path;FI"/teaspoon/base/reporters/html/suite_view.js;FI" pathname;FI"m/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/html/suite_view.coffee;FI"content_type;FI"application/javascript;FI" mtime;Fl+Qú½QI" length;FišI" digest;F"%d2e372070fcdf1753a3387355ddeeb1cI" 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; }; Teaspoon.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 Teaspoon.Suite(suite); SuiteView.__super__.constructor.apply(this, arguments); } SuiteView.prototype.build = function() { SuiteView.__super__.build.call(this, "suite"); this.el.innerHTML = "

" + this.suite.description + "

"; 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 Teaspoon.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; })(Teaspoon.Reporters.BaseView); }).call(this); ;TI"dependency_digest;F"%eb7308fda3688aedd51d565126be4813I"required_paths;F[I"m/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/html/suite_view.coffee;FI"dependency_paths;F[{I" path;FI"m/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/html/suite_view.coffee;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" digest;F"%66ec8384f8db74391232e8f4a6fdb646I" _version;F"%7097359102b3db973d6242ce2db779ef