]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Removed back-compat filter in tests for negative active option.
authorScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 10:00:18 +0000 (06:00 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 10:00:18 +0000 (06:00 -0400)
tests/unit/tabs/tabs_options.js

index 1b468f2b61dd7ba5eae6abeac2a17d128088f0ff..c320c9d4674b53806d2e666502a714e03146a5cb 100644 (file)
@@ -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 );