aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-25 06:00:18 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-25 06:00:18 -0400
commit056f83fb0124fef9cbcad7a95b6bb517294a8ea0 (patch)
tree3cead45221da61b71e0afa9696476f2aee265341 /tests/unit/tabs
parent3d6c2a66d44a9283ad18e8c7c5ea701ddca82e59 (diff)
downloadjquery-ui-056f83fb0124fef9cbcad7a95b6bb517294a8ea0.tar.gz
jquery-ui-056f83fb0124fef9cbcad7a95b6bb517294a8ea0.zip
Tabs: Removed back-compat filter in tests for negative active option.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs_options.js42
1 files changed, 20 insertions, 22 deletions
diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js
index 1b468f2b6..c320c9d46 100644
--- a/tests/unit/tabs/tabs_options.js
+++ b/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 );