' ).html( testEnvironment ).appendTo( 'body' );
strictEqual( $testA.firstTabIndex(), 2, 'First tabindex should be 2 within this context.' );
var $testB = $( '
' );
strictEqual( $testB.firstTabIndex(), null, 'Return null if none available.' );
// Clean up
$testA.add( $testB ).remove();
});
test( 'lastTabIndex', function() {
expect(2);
var testEnvironment =
'
';
var $testA = $( '
' ).html( testEnvironment ).appendTo( 'body' );
strictEqual( $testA.lastTabIndex(), 9, 'Last tabindex should be 9 within this context.' );
var $testB = $( '
' );
strictEqual( $testB.lastTabIndex(), null, 'Return null if none available.' );
// Clean up
$testA.add( $testB ).remove();
});