From: Timo Tijhof Date: Tue, 23 Jun 2015 02:39:36 +0000 (+0100) Subject: Suppress deprecation warnings in 'jquery.mwExtension.test' X-Git-Tag: 1.31.0-rc.0~11009^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=3fa451966b51e78f68570e209160086b1c61a148;p=lhc%2Fweb%2Fwiklou.git Suppress deprecation warnings in 'jquery.mwExtension.test' Follows-up b0ee0c0. Change-Id: I1e38ec9b7e822c177e038b2c83827a3910fe75ad --- diff --git a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js index 795c2bbb8e..911e9d01ca 100644 --- a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js @@ -1,5 +1,14 @@ ( function ( $ ) { - QUnit.module( 'jquery.mwExtension', QUnit.newMwEnvironment() ); + QUnit.module( 'jquery.mwExtension', QUnit.newMwEnvironment( { + // This entire module is deprecated. + // Surpress deprecation warnings in test output. + setup: function () { + this.suppressWarnings(); + }, + teardown: function () { + this.restoreWarnings(); + } + }) ); QUnit.test( 'String functions', 7, function ( assert ) { assert.equal( $.trimLeft( ' foo bar ' ), 'foo bar ', 'trimLeft' );