module( "tabs: methods" );
test( "destroy", function() {
- expect( 1 );
+ expect( 2 );
domEqual( "#tabs1", function() {
$( "#tabs1" ).tabs().tabs( "destroy" );
});
+ domEqual( "#tabs2", function() {
+ $( "#tabs2" ).tabs().tabs( "destroy" );
+ });
});
test( "enable", function() {
var li = $( this ),
prev = li.data( "ui-tabs-aria-controls" );
if ( prev ) {
- li.attr( "aria-controls", prev );
+ li
+ .attr( "aria-controls", prev )
+ .removeData( "ui-tabs-aria-controls" );
} else {
li.removeAttr( "aria-controls" );
}