From c2802d7aa05e6dc7731806a35d9f0057405a22c7 Mon Sep 17 00:00:00 2001 From: David Petersen Date: Wed, 17 Oct 2012 11:35:27 -0400 Subject: Accordion: handle active: null. Fixes #8694: 1.9 Accordion - active: null allows panels to be collapsible. --- tests/unit/accordion/accordion_options.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 5d950e1ac..8f0d0637f 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -13,6 +13,15 @@ test( "{ active: default }", function() { state( element, 1, 0, 0 ); }); +test( "{ active: null }", function() { + expect( 2 ); + var element = $( "#list1" ).accordion({ + active: null + }); + equal( element.accordion( "option", "active" ), 0 ); + state( element, 1, 0, 0 ); +}); + test( "{ active: false }", function() { expect( 7 ); var element = $( "#list1" ).accordion({ -- cgit v1.2.3