summaryrefslogtreecommitdiff
path: root/tests/qunit/suites/resources/jquery/jquery.tabIndex.js
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
commitd9022f63880ce039446fba8364f68e656b7bf4cb (patch)
tree16b40fbf17bf7c9ee6f4ead25b16dd192378050a /tests/qunit/suites/resources/jquery/jquery.tabIndex.js
parent27cf83d177256813e2e802241085fce5dd0f3fb9 (diff)
Update to MediaWiki 1.19.0
Diffstat (limited to 'tests/qunit/suites/resources/jquery/jquery.tabIndex.js')
-rw-r--r--tests/qunit/suites/resources/jquery/jquery.tabIndex.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/qunit/suites/resources/jquery/jquery.tabIndex.js b/tests/qunit/suites/resources/jquery/jquery.tabIndex.js
deleted file mode 100644
index 1ff81e58..00000000
--- a/tests/qunit/suites/resources/jquery/jquery.tabIndex.js
+++ /dev/null
@@ -1,50 +0,0 @@
-module( 'jquery.tabIndex.js' );
-
-test( '-- Initial check', function() {
- expect(2);
-
- ok( $.fn.firstTabIndex, '$.fn.firstTabIndex defined' );
- ok( $.fn.lastTabIndex, '$.fn.lastTabIndex defined' );
-});
-
-test( 'firstTabIndex', function() {
- expect(2);
-
- var testEnvironment =
-'<form>' +
- '<input tabindex="7" />' +
- '<input tabindex="9" />' +
- '<textarea tabindex="2">Foobar</textarea>' +
- '<textarea tabindex="5">Foobar</textarea>' +
-'</form>';
-
- var $testA = $( '<div>' ).html( testEnvironment ).appendTo( 'body' );
- strictEqual( $testA.firstTabIndex(), 2, 'First tabindex should be 2 within this context.' );
-
- var $testB = $( '<div>' );
- strictEqual( $testB.firstTabIndex(), null, 'Return null if none available.' );
-
- // Clean up
- $testA.add( $testB ).remove();
-});
-
-test( 'lastTabIndex', function() {
- expect(2);
-
- var testEnvironment =
-'<form>' +
- '<input tabindex="7" />' +
- '<input tabindex="9" />' +
- '<textarea tabindex="2">Foobar</textarea>' +
- '<textarea tabindex="5">Foobar</textarea>' +
-'</form>';
-
- var $testA = $( '<div>' ).html( testEnvironment ).appendTo( 'body' );
- strictEqual( $testA.lastTabIndex(), 9, 'Last tabindex should be 9 within this context.' );
-
- var $testB = $( '<div>' );
- strictEqual( $testB.lastTabIndex(), null, 'Return null if none available.' );
-
- // Clean up
- $testA.add( $testB ).remove();
-});