Skip to content
Permalink
Browse files

Tabs: Removed back-compat filter in tests for negative active option.

  • Loading branch information...
scottgonzalez committed Oct 25, 2012
1 parent 3d6c2a6 commit 056f83fb0124fef9cbcad7a95b6bb517294a8ea0
Showing with 20 additions and 22 deletions.
  1. +20 −22 tests/unit/tabs/tabs_options.js
@@ -73,29 +73,27 @@ test( "{ active: Number }", function() {
state( element, 0, 1, 0 );
});

if ( $.uiBackCompat === false ) {
test( "{ active: -Number }", function() {
expect( 8 );

var element = $( "#tabs1" ).tabs({
active: -1
});
equal( element.tabs( "option", "active" ), 2 );
state( element, 0, 0, 1 );

element.tabs( "option", "active", -2 );
equal( element.tabs( "option", "active" ), 1 );
state( element, 0, 1, 0 );

element.tabs( "option", "active", -10 );
equal( element.tabs( "option", "active" ), 1 );
state( element, 0, 1, 0 );

element.tabs( "option", "active", -3 );
equal( element.tabs( "option", "active" ), 0 );
state( element, 1, 0, 0 );
test( "{ active: -Number }", function() {
expect( 8 );

var element = $( "#tabs1" ).tabs({
active: -1
});
}
equal( element.tabs( "option", "active" ), 2 );
state( element, 0, 0, 1 );

element.tabs( "option", "active", -2 );
equal( element.tabs( "option", "active" ), 1 );
state( element, 0, 1, 0 );

element.tabs( "option", "active", -10 );
equal( element.tabs( "option", "active" ), 1 );
state( element, 0, 1, 0 );

element.tabs( "option", "active", -3 );
equal( element.tabs( "option", "active" ), 0 );
state( element, 1, 0, 0 );
});

test( "active - mismatched tab/panel order", function() {
expect( 3 );

0 comments on commit 056f83f

Please sign in to comment.
You can’t perform that action at this time.