aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-03 09:54:11 -0500
committerScott González <scott.gonzalez@gmail.com>2011-02-03 09:54:11 -0500
commit714a77f202ee02b894992722d2e6b35b4089557e (patch)
tree9f1923c4bdf769801426231ac44aca342d755972 /tests
parent39cf7d5bb4f9dfe1ada5dc2499f5c91e536ec96b (diff)
downloadjquery-ui-714a77f202ee02b894992722d2e6b35b4089557e.tar.gz
jquery-ui-714a77f202ee02b894992722d2e6b35b4089557e.zip
Accordion: Properly handle collapsible: false and active: false by changing active to 0.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_options.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js
index 8fcfdb172..71154d57a 100644
--- a/tests/unit/accordion/accordion_options.js
+++ b/tests/unit/accordion/accordion_options.js
@@ -17,17 +17,16 @@ test( "{ active: false }", function() {
equals( ac.find( ".ui-accordion-header.ui-state-active" ).size(), 0, "no headers selected" );
equals( ac.accordion( "option", "active" ), false );
- // TODO: fix active: false when not collapsible
-// ac.accordion( "option", "collapsible", false );
-// state( ac, 1, 0, 0 );
-// equals( ac.accordion( "option", "active" ), 0 );
-//
-// ac.accordion( "destroy" );
-// ac.accordion({
-// active: false
-// });
-// state( ac, 1, 0, 0 );
-// strictEqual( ac.accordion( "option", "active" ), 0 );
+ ac.accordion( "option", "collapsible", false );
+ state( ac, 1, 0, 0 );
+ equals( ac.accordion( "option", "active" ), 0 );
+
+ ac.accordion( "destroy" );
+ ac.accordion({
+ active: false
+ });
+ state( ac, 1, 0, 0 );
+ strictEqual( ac.accordion( "option", "active" ), 0 );
});
test( "{ active: Number }", function() {