~cordova-ubuntu/cordova-ubuntu-tests/ci

« back to all changes in this revision

Viewing changes to www/autotest/html/SuiteView.js

  • Committer: VĂ­ctor R. Ruiz
  • Date: 2013-07-25 13:09:34 UTC
  • Revision ID: victor.ruiz@canonical.com-20130725130934-d4q95mh8eehbv363
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
jasmine.HtmlReporter.SuiteView = function(suite, dom, views) {
 
2
  this.suite = suite;
 
3
  this.dom = dom;
 
4
  this.views = views;
 
5
 
 
6
  this.element = this.createDom('div', { className: 'suite' },
 
7
      this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(this.suite.getFullName()) }, this.suite.description)
 
8
  );
 
9
 
 
10
  this.appendToSummary(this.suite, this.element);
 
11
};
 
12
 
 
13
jasmine.HtmlReporter.SuiteView.prototype.status = function() {
 
14
  return this.getSpecStatus(this.suite);
 
15
};
 
16
 
 
17
jasmine.HtmlReporter.SuiteView.prototype.refresh = function() {
 
18
  this.element.className += " " + this.status();
 
19
};
 
20
 
 
21
jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView);
 
22