qunit: Remove test for deprecated jquery.placeholder
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 13 Apr 2017 21:00:24 +0000 (14:00 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 13 Apr 2017 21:00:24 +0000 (14:00 -0700)
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
tests/qunit/suites/resources/jquery/jquery.placeholder.test.js [deleted file]

index 6468646..53362c4 100644 (file)
@@ -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 (file)
index ed2fbe6..0000000
+++ /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 ) );