aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/helper.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 08:57:25 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:29:07 -0400
commit6c0bb249184e3ad6f8ce48509b5f9011313a57a3 (patch)
treec4a8e7e0f38eb4983886afda173b609fce43cf58 /tests/unit/tabs/helper.js
parenta0892eca70b59238e40082cc7c2e5a042fb5bae9 (diff)
downloadjquery-ui-6c0bb249184e3ad6f8ce48509b5f9011313a57a3.tar.gz
jquery-ui-6c0bb249184e3ad6f8ce48509b5f9011313a57a3.zip
Tabs: Style updates
Ref #14246
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 );
}
} );