mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-01 05:02:50 +08:00
23 lines
690 B
JavaScript
23 lines
690 B
JavaScript
jasmine.HtmlReporter.SuiteView = function(suite, dom, views) {
|
|
this.suite = suite;
|
|
this.dom = dom;
|
|
this.views = views;
|
|
|
|
this.element = this.createDom('div', { className: 'suite' },
|
|
this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(this.suite.getFullName()) }, this.suite.description)
|
|
);
|
|
|
|
this.appendToSummary(this.suite, this.element);
|
|
};
|
|
|
|
jasmine.HtmlReporter.SuiteView.prototype.status = function() {
|
|
return this.getSpecStatus(this.suite);
|
|
};
|
|
|
|
jasmine.HtmlReporter.SuiteView.prototype.refresh = function() {
|
|
this.element.className += " " + this.status();
|
|
};
|
|
|
|
jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView);
|
|
|