Sha256: d648d2e3018d55f1fe3213ce0cf7a5701746383dd4fff2bcd414082048812564

Contents?: true

Size: 528 Bytes

Versions: 17

Compression:

Stored size: 528 Bytes

Contents

var Result = function() {
  var startTime = Date.now();

  this.total = this.skipped = this.failed = this.success = 0;
  this.netTime = this.totalTime = 0;
  this.disconnected = this.error = false;

  this.totalTimeEnd = function() {
    this.totalTime = Date.now() - startTime;
  };

  this.add = function(result) {
    if (result.skipped) {
      this.skipped++;
    } else if (result.success) {
      this.success++;
    } else {
      this.failed++;
    }

    this.netTime += result.time;
  };
};

module.exports = Result;

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.4.1 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.4.0 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.3.0 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.2.1 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.2.0 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.1.0 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.0.8 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.0.7 jasmine/node_modules/karma/lib/browser_result.js
hooch-0.0.6 jasmine/node_modules/karma/lib/browser_result.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/lib/browser_result.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/lib/browser_result.js