Sha256: a2e03a3217428de0e11d4e77fda1a30d5e7f07c100d9a3097fd211ebf59e601d
Contents?: true
Size: 1019 Bytes
Versions: 3
Compression:
Stored size: 1019 Bytes
Contents
/** JasmineReporters.reporter * Base object that will get called whenever a Spec, Suite, or Runner is done. It is up to * descendants of this object to do something with the results (see json_reporter.js) * * @deprecated */ jasmine.Reporters = {}; /** * @deprecated * @param callbacks */ jasmine.Reporters.reporter = function(callbacks) { /** * @deprecated * @param callbacks */ var that = { callbacks: callbacks || {}, doCallback: function(callback, results) { if (callback) { callback(results); } }, reportRunnerResults: function(runner) { that.doCallback(that.callbacks.runnerCallback, runner); }, reportSuiteResults: function(suite) { that.doCallback(that.callbacks.suiteCallback, suite); }, reportSpecResults: function(spec) { that.doCallback(that.callbacks.specCallback, spec); }, log: function (str) { if (this.console && this.console.log) this.console.log(str); } }; return that; };
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
jazz-0.1.1 | vendor/jasmine/src/Reporters.js |
jazrb-0.1.1 | vendor/jasmine/src/Reporters.js |
jazrb-0.1.0 | vendor/jasmine/src/Reporters.js |