From 6a9f74e84959b76b3b3bea6646f38ac72c8e4ff3 Mon Sep 17 00:00:00 2001 From: Lee Byrd & Christian Williams Date: Wed, 23 Jun 2010 10:53:10 -0700 Subject: [PATCH] Add jsdoc for jasmine.log. --- src/Spec.js | 5 +++++ src/base.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Spec.js b/src/Spec.js index f6d6596..cdedb0b 100644 --- a/src/Spec.js +++ b/src/Spec.js @@ -37,6 +37,11 @@ jasmine.Spec.prototype.results = function() { 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 jasmine.log in production code. + */ jasmine.Spec.prototype.log = function() { return this.results_.log(arguments); }; diff --git a/src/base.js b/src/base.js index 6ac3067..f389221 100755 --- a/src/base.js +++ b/src/base.js @@ -409,6 +409,11 @@ jasmine.createSpyObj = function(baseName, methodNames) { 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 jasmine.log in production code. + */ jasmine.log = function() { var spec = jasmine.getEnv().currentSpec; spec.log.apply(spec, arguments);