mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Removed back-compat filter in tests for negative active option.
This commit is contained in:
parent
3d6c2a66d4
commit
056f83fb01
@ -73,29 +73,27 @@ test( "{ active: Number }", function() {
|
|||||||
state( element, 0, 1, 0 );
|
state( element, 0, 1, 0 );
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( $.uiBackCompat === false ) {
|
test( "{ active: -Number }", function() {
|
||||||
test( "{ active: -Number }", function() {
|
expect( 8 );
|
||||||
expect( 8 );
|
|
||||||
|
|
||||||
var element = $( "#tabs1" ).tabs({
|
var element = $( "#tabs1" ).tabs({
|
||||||
active: -1
|
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 );
|
|
||||||
});
|
});
|
||||||
}
|
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() {
|
test( "active - mismatched tab/panel order", function() {
|
||||||
expect( 3 );
|
expect( 3 );
|
||||||
|
Loading…
Reference in New Issue
Block a user