Sha256: 902f8521d7c975e54045284443839c21f46594cb981cd4edc3403109c046e364

Contents?: true

Size: 882 Bytes

Versions: 9

Compression:

Stored size: 882 Bytes

Contents

/**
 * @constructor
 */
jasmine.MultiReporter = function() {
  this.subReporters_ = [];
};
jasmine.util.inherit(jasmine.MultiReporter, jasmine.Reporter);

jasmine.MultiReporter.prototype.addReporter = function(reporter) {
  this.subReporters_.push(reporter);
};

(function() {
  var functionNames = ["reportRunnerStarting", "reportRunnerResults", "reportSuiteResults", "reportSpecResults", "log"];
  for (var i = 0; i < functionNames.length; i++) {
    var functionName = functionNames[i];
    jasmine.MultiReporter.prototype[functionName] = (function(functionName) {
      return function() {
        for (var j = 0; j < this.subReporters_.length; j++) {
          var subReporter = this.subReporters_[j];
          if (subReporter[functionName]) {
            subReporter[functionName].apply(subReporter, arguments);
          }
        }
      };
    })(functionName);
  }
})();

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
evergreen-0.1 lib/jasmine/src/MultiReporter.js
jasnode-0.4.3.0 jasmine/src/MultiReporter.js
jasnode-0.4.2.0 jasmine/src/MultiReporter.js
jasnode-0.4.1.0 jasmine/src/MultiReporter.js
jasnode-0.4.0.0 jasmine/src/MultiReporter.js
jasnode-0.2.0.0 jasmine/src/MultiReporter.js
jazz-0.1.1 vendor/jasmine/src/MultiReporter.js
jazrb-0.1.1 vendor/jasmine/src/MultiReporter.js
jazrb-0.1.0 vendor/jasmine/src/MultiReporter.js