Keep jasmine.Matchers.pp() but throw an error message.

This commit is contained in:
Christian Williams 2010-03-05 22:36:42 -05:00
parent a661e77345
commit 23d5c7180b
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) {
this.reportWasCalled_ = false;
};
jasmine.Matchers.pp = function(str) {
throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!");
};
/** @deprecated */
jasmine.Matchers.prototype.report = function(result, failing_message, details) {
// todo: report a deprecation warning [xw]