Better deprecation messages.
This commit is contained in:
parent
23d5c7180b
commit
e9a2b0dcdb
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user