From: Timo Tijhof Date: Thu, 13 Apr 2017 21:00:24 +0000 (-0700) Subject: qunit: Remove test for deprecated jquery.placeholder X-Git-Tag: 1.31.0-rc.0~3511 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=74432560bea07c969125c2c52eac35af706b002b;p=lhc%2Fweb%2Fwiklou.git qunit: Remove test for deprecated jquery.placeholder It's not very useful and needlessly emits deprecation warnings which unfortunately cannot be surpressed at runtime. The test just asserts that a no-op function exists. Change-Id: I2768ba40191a3c0cc7be6202ffa5bed529eabfee --- diff --git a/tests/qunit/QUnitTestResources.php b/tests/qunit/QUnitTestResources.php index 6468646070..53362c4665 100644 --- a/tests/qunit/QUnitTestResources.php +++ b/tests/qunit/QUnitTestResources.php @@ -57,7 +57,6 @@ return [ 'tests/qunit/suites/resources/jquery/jquery.localize.test.js', 'tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js', 'tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js', - 'tests/qunit/suites/resources/jquery/jquery.placeholder.test.js', 'tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js', 'tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js', 'tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js', @@ -113,7 +112,6 @@ return [ 'jquery.localize', 'jquery.makeCollapsible', 'jquery.mwExtension', - 'jquery.placeholder', 'jquery.tabIndex', 'jquery.tablesorter', 'jquery.textSelection', diff --git a/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js b/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js deleted file mode 100644 index ed2fbe69dd..0000000000 --- a/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js +++ /dev/null @@ -1,8 +0,0 @@ -( function ( $ ) { - QUnit.module( 'jquery.placeholder', QUnit.newMwEnvironment() ); - - QUnit.test( 'caches results of feature tests', function ( assert ) { - assert.strictEqual( typeof $.fn.placeholder.input, 'boolean', '$.fn.placeholder.input' ); - assert.strictEqual( typeof $.fn.placeholder.textarea, 'boolean', '$.fn.placeholder.textarea' ); - } ); -}( jQuery ) );