diff options
author | David Petersen <public@petersendidit.com> | 2012-10-17 11:35:27 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-18 00:08:37 -0400 |
commit | c2802d7aa05e6dc7731806a35d9f0057405a22c7 (patch) | |
tree | 3eec827a435f7f9569bb55ddc7932a3d11c65276 /tests | |
parent | 390510c7059d98d68cfe082530051c476ee08be4 (diff) | |
download | jquery-ui-c2802d7aa05e6dc7731806a35d9f0057405a22c7.tar.gz jquery-ui-c2802d7aa05e6dc7731806a35d9f0057405a22c7.zip |
Accordion: handle active: null. Fixes #8694: 1.9 Accordion - active: null allows panels to be collapsible.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/accordion/accordion_options.js | 9 |
1 files changed, 9 insertions, 0 deletions
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({ |