From 74432560bea07c969125c2c52eac35af706b002b Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 13 Apr 2017 14:00:24 -0700 Subject: [PATCH] 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 --- tests/qunit/QUnitTestResources.php | 2 -- .../suites/resources/jquery/jquery.placeholder.test.js | 8 -------- 2 files changed, 10 deletions(-) delete mode 100644 tests/qunit/suites/resources/jquery/jquery.placeholder.test.js 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 ) ); -- 2.20.1