Sha256: fcf654b91e9fa807407397bfa5abda99c2c3254d284d868404a73c157c7ab0f6

Contents?: true

Size: 1.33 KB

Versions: 40

Compression:

Stored size: 1.33 KB

Contents

getJasmineRequireObj().JsApiReporter = function() {

  var noopTimer = {
    start: function(){},
    elapsed: function(){ return 0; }
  };

  function JsApiReporter(options) {
    var timer = options.timer || noopTimer,
        status = 'loaded';

    this.started = false;
    this.finished = false;

    this.jasmineStarted = function() {
      this.started = true;
      status = 'started';
      timer.start();
    };

    var executionTime;

    this.jasmineDone = function() {
      this.finished = true;
      executionTime = timer.elapsed();
      status = 'done';
    };

    this.status = function() {
      return status;
    };

    var suites = {};

    this.suiteStarted = function(result) {
      storeSuite(result);
    };

    this.suiteDone = function(result) {
      storeSuite(result);
    };

    function storeSuite(result) {
      suites[result.id] = result;
    }

    this.suites = function() {
      return suites;
    };

    var specs = [];
    this.specStarted = function(result) { };

    this.specDone = function(result) {
      specs.push(result);
    };

    this.specResults = function(index, length) {
      return specs.slice(index, index + length);
    };

    this.specs = function() {
      return specs;
    };

    this.executionTime = function() {
      return executionTime;
    };

  }

  return JsApiReporter;
};

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/src/core/JsApiReporter.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.5 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.4 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.3 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js
upjs-rails-0.7.2 spec_app/vendor/assets/bower_components/jasmine/src/core/JsApiReporter.js