Deprecate 'jquery.tabIndex' module
authorAmmar Abdulhamid <ammarpad@yahoo.com>
Sun, 13 Oct 2019 10:25:20 +0000 (11:25 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 18 Oct 2019 23:49:39 +0000 (23:49 +0000)
Bug: T234581
Change-Id: I8e1b43ae17b2bdd90f5ce7f0a4907cf94f759b8d

RELEASE-NOTES-1.34
resources/Resources.php
tests/qunit/QUnitTestResources.php
tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js [deleted file]

index 4cf982d..e9101b3 100644 (file)
@@ -595,6 +595,7 @@ because of Phabricator reports.
 * Specifying a SpecialPage object for the list of special pages (either through
   the SpecialPage_initList hook or by adding to $wgSpecialPages) is now
   deprecated.
+* The 'jquery.tabIndex' module is deprecated.
 * WebInstaller::getInfoBox(), getWarningBox() and getErrorBox() are deprecated.
   Use Html::errorBox() or Html::warningBox() instead.
 * Use of ActorMigration with 'ar_user', 'img_user', 'oi_user', 'fa_user',
index 9354435..92a9805 100644 (file)
@@ -268,6 +268,7 @@ return [
                'dependencies' => 'jquery.highlightText',
        ],
        'jquery.tabIndex' => [
+               'deprecated' => true,
                'scripts' => 'resources/src/jquery/jquery.tabIndex.js',
        ],
        'jquery.tablesorter' => [
index a3a165f..e4e899a 100644 (file)
@@ -50,7 +50,6 @@ return [
                        'tests/qunit/suites/resources/jquery/jquery.highlightText.test.js',
                        'tests/qunit/suites/resources/jquery/jquery.lengthLimit.test.js',
                        'tests/qunit/suites/resources/jquery/jquery.makeCollapsible.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',
                        'tests/qunit/suites/resources/jquery/jquery.textSelection.test.js',
@@ -106,7 +105,6 @@ return [
                        'jquery.highlightText',
                        'jquery.lengthLimit',
                        'jquery.makeCollapsible',
-                       'jquery.tabIndex',
                        'jquery.tablesorter',
                        'jquery.textSelection',
                        'mediawiki.api',
diff --git a/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js b/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js
deleted file mode 100644 (file)
index 220771b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-( function () {
-       QUnit.module( 'jquery.tabIndex', QUnit.newMwEnvironment() );
-
-       QUnit.test( 'firstTabIndex', function ( assert ) {
-               var html, $testA, $testB;
-               html = '<form>' +
-                       '<input tabindex="7" />' +
-                       '<input tabindex="9" />' +
-                       '<textarea tabindex="2">Foobar</textarea>' +
-                       '<textarea tabindex="5">Foobar</textarea>' +
-                       '</form>';
-
-               $testA = $( '<div>' ).html( html ).appendTo( '#qunit-fixture' );
-               assert.strictEqual( $testA.firstTabIndex(), 2, 'First tabindex should be 2 within this context.' );
-
-               $testB = $( '<div>' );
-               assert.strictEqual( $testB.firstTabIndex(), null, 'Return null if none available.' );
-       } );
-
-       QUnit.test( 'lastTabIndex', function ( assert ) {
-               var html, $testA, $testB;
-               html = '<form>' +
-                       '<input tabindex="7" />' +
-                       '<input tabindex="9" />' +
-                       '<textarea tabindex="2">Foobar</textarea>' +
-                       '<textarea tabindex="5">Foobar</textarea>' +
-                       '</form>';
-
-               $testA = $( '<div>' ).html( html ).appendTo( '#qunit-fixture' );
-               assert.strictEqual( $testA.lastTabIndex(), 9, 'Last tabindex should be 9 within this context.' );
-
-               $testB = $( '<div>' );
-               assert.strictEqual( $testB.lastTabIndex(), null, 'Return null if none available.' );
-       } );
-}() );