diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js')
-rw-r--r-- | tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js | 33 |
1 files changed, 0 insertions, 33 deletions
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 index 161f0cd1..00000000 --- a/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js +++ /dev/null @@ -1,33 +0,0 @@ -QUnit.module( 'jquery.tabIndex', QUnit.newMwEnvironment() ); - -QUnit.test( 'firstTabIndex', 2, function ( assert ) { - 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( '#qunit-fixture' ); - assert.strictEqual( $testA.firstTabIndex(), 2, 'First tabindex should be 2 within this context.' ); - - var $testB = $( '<div>' ); - assert.strictEqual( $testB.firstTabIndex(), null, 'Return null if none available.' ); -}); - -QUnit.test( 'lastTabIndex', 2, function ( assert ) { - 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( '#qunit-fixture' ); - assert.strictEqual( $testA.lastTabIndex(), 9, 'Last tabindex should be 9 within this context.' ); - - var $testB = $( '<div>' ); - assert.strictEqual( $testB.lastTabIndex(), null, 'Return null if none available.' ); -}); |