summaryrefslogtreecommitdiff
path: root/plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js')
-rw-r--r--plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js b/plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js
new file mode 100644
index 00000000..19a1efaf
--- /dev/null
+++ b/plugins/org.apache.cordova.file/test/autotest/html/SuiteView.js
@@ -0,0 +1,22 @@
+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);
+