aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tabs/helper.js')
-rw-r--r--tests/unit/tabs/helper.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/unit/tabs/helper.js b/tests/unit/tabs/helper.js
index 132061753..073895f5f 100644
--- a/tests/unit/tabs/helper.js
+++ b/tests/unit/tabs/helper.js
@@ -15,7 +15,7 @@ return $.extend( helper, {
if ( internalState === true ) {
internalState = $.map( new Array( tabs.find( ".ui-tabs-nav li" ).length ), function( _, index ) {
return index;
- });
+ } );
}
expected = $.map( new Array( tabs.find ( ".ui-tabs-nav li" ).length ), function( _, index ) {
@@ -24,9 +24,9 @@ return $.extend( helper, {
} else {
return $.inArray( index, state ) !== -1 ? 1 : 0;
}
- });
+ } );
- actual = tabs.find( ".ui-tabs-nav li" ).map(function( index ) {
+ actual = tabs.find( ".ui-tabs-nav li" ).map( function( index ) {
var tab = $( this ),
tabIsDisabled = tab.hasClass( "ui-state-disabled" );
@@ -36,23 +36,24 @@ return $.extend( helper, {
if ( !tabIsDisabled && $.inArray( index, internalState ) === -1 ) {
return 0;
}
+
// mixed state - invalid
return -1;
- }).get();
+ } ).get();
deepEqual( tabs.tabs( "option", "disabled" ), state );
deepEqual( actual, expected );
},
equalHeight: function( tabs, height ) {
- tabs.find( ".ui-tabs-panel" ).each(function() {
+ tabs.find( ".ui-tabs-panel" ).each( function() {
equal( $( this ).outerHeight(), height );
- });
+ } );
},
state: function( tabs ) {
var expected = $.makeArray( arguments ).slice( 1 ),
- actual = tabs.find( ".ui-tabs-nav li" ).map(function() {
+ actual = tabs.find( ".ui-tabs-nav li" ).map( function() {
var tab = $( this ),
panel = $( $.ui.tabs.prototype._sanitizeSelector(
"#" + tab.attr( "aria-controls" ) ) ),
@@ -66,7 +67,7 @@ return $.extend( helper, {
return 0;
}
return -1; // mixed state - invalid
- }).get();
+ } ).get();
deepEqual( actual, expected );
}
} );