Add jsdoc for jasmine.log.

This commit is contained in:
Lee Byrd & Christian Williams 2010-06-23 10:53:10 -07:00
parent 3be2455d8c
commit 6a9f74e849
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,11 @@ jasmine.Spec.prototype.results = function() {
return this.results_; return this.results_;
}; };
/**
* All parameters are pretty-printed and concatenated together, then written to the spec's output.
*
* Be careful not to leave calls to <code>jasmine.log</code> in production code.
*/
jasmine.Spec.prototype.log = function() { jasmine.Spec.prototype.log = function() {
return this.results_.log(arguments); return this.results_.log(arguments);
}; };

View File

@ -409,6 +409,11 @@ jasmine.createSpyObj = function(baseName, methodNames) {
return obj; return obj;
}; };
/**
* All parameters are pretty-printed and concatenated together, then written to the current spec's output.
*
* Be careful not to leave calls to <code>jasmine.log</code> in production code.
*/
jasmine.log = function() { jasmine.log = function() {
var spec = jasmine.getEnv().currentSpec; var spec = jasmine.getEnv().currentSpec;
spec.log.apply(spec, arguments); spec.log.apply(spec, arguments);