diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-10 11:34:12 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-10 12:10:01 +0100 |
commit | 5848c31fa20bd2b8f6a9e62e4fdf31d99fb481c1 (patch) | |
tree | 4476cab4b8c690f177817326da1277e97d8af650 /core/src/Polyfill | |
parent | 78e1f228933ca3b67a628deff532704d6c7caba8 (diff) | |
download | nextcloud-server-5848c31fa20bd2b8f6a9e62e4fdf31d99fb481c1.tar.gz nextcloud-server-5848c31fa20bd2b8f6a9e62e4fdf31d99fb481c1.zip |
Do not print deprecation warnings during testing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/Polyfill')
-rw-r--r-- | core/src/Polyfill/tooltip.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/Polyfill/tooltip.js b/core/src/Polyfill/tooltip.js index 08cc58c338c..2dd7592edb4 100644 --- a/core/src/Polyfill/tooltip.js +++ b/core/src/Polyfill/tooltip.js @@ -25,11 +25,15 @@ $.prototype.tooltip = (function(tooltip) { return tooltip.call(this, config) } catch (ex) { if (ex instanceof TypeError && config === 'destroy') { - console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') + if (window.TESTING === undefined) { + console.error('Deprecated call $.tooltip(\'destroy\') has been deprecated and should be removed') + } return tooltip.call(this, 'dispose') } if (ex instanceof TypeError && config === 'fixTitle') { - console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') + if (window.TESTING === undefined) { + console.error('Deprecated call $.tooltip(\'fixTitle\') has been deprecated and should be removed') + } return tooltip.call(this, '_fixTitle') } } |