X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.tabIndex.test.js;h=ec3539b95a18f450c981174727bd577a8fc869bc;hb=d17eeb742a26c2567de96872c0419b39b97cde56;hp=e31fc6393712a990e7554efcec68f71ea2ea2ed2;hpb=23fce414f6e8bce7915ba824b1622662c5ac66e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js b/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js index e31fc63937..ec3539b95a 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js @@ -1,37 +1,35 @@ ( function ( $ ) { QUnit.module( 'jquery.tabIndex', QUnit.newMwEnvironment() ); - QUnit.test( 'firstTabIndex', 2, function ( assert ) { + QUnit.test( 'firstTabIndex', function ( assert ) { var html, $testA, $testB; - html = - '
' + - '' + - '' + - '' + - '' + - '
'; + html = '
' + + '' + + '' + + '' + + '' + + '
'; $testA = $( '
' ).html( html ).appendTo( '#qunit-fixture' ); assert.strictEqual( $testA.firstTabIndex(), 2, 'First tabindex should be 2 within this context.' ); $testB = $( '
' ); assert.strictEqual( $testB.firstTabIndex(), null, 'Return null if none available.' ); - }); + } ); - QUnit.test( 'lastTabIndex', 2, function ( assert ) { + QUnit.test( 'lastTabIndex', function ( assert ) { var html, $testA, $testB; - html = - '
' + - '' + - '' + - '' + - '' + - '
'; + html = '
' + + '' + + '' + + '' + + '' + + '
'; $testA = $( '
' ).html( html ).appendTo( '#qunit-fixture' ); assert.strictEqual( $testA.lastTabIndex(), 9, 'Last tabindex should be 9 within this context.' ); $testB = $( '
' ); assert.strictEqual( $testB.lastTabIndex(), null, 'Return null if none available.' ); - }); + } ); }( jQuery ) );