From e9a2b0dcdb4894be260ca3b8d18cf3d44ea20329 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Fri, 5 Mar 2010 22:40:47 -0500 Subject: [PATCH] Better deprecation messages. --- src/Matchers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Matchers.js b/src/Matchers.js index 10f26a6..8219336 100644 --- a/src/Matchers.js +++ b/src/Matchers.js @@ -12,11 +12,13 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) { this.reportWasCalled_ = false; }; +// todo: @deprecated as of Jasmine 0.11, remove soon [xw] jasmine.Matchers.pp = function(str) { throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!"); + this.report(); }; -/** @deprecated */ +/** @deprecated Deprecated as of Jasmine 0.10. Rewrite your custom matchers to return true or false. */ jasmine.Matchers.prototype.report = function(result, failing_message, details) { // todo: report a deprecation warning [xw]