diff options
author | Alyosha Pushak <alyosha.pushak@gmail.com> | 2015-04-12 19:17:16 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-02-09 14:40:29 -0500 |
commit | c87653bc24f5bc84c299b047d49a06c132a48788 (patch) | |
tree | cd19065718aedd23980ef2b5ade800c8a6f81622 /tests/unit/accordion/options.js | |
parent | 2bc84615ae306b15e4fed50fb9d2c54e05e62870 (diff) | |
download | jquery-ui-c87653bc24f5bc84c299b047d49a06c132a48788.tar.gz jquery-ui-c87653bc24f5bc84c299b047d49a06c132a48788.zip |
Accordion: Correct height calculated when closed
Fixes #11938
Closes gh-1536
Closes gh-1616
Diffstat (limited to 'tests/unit/accordion/options.js')
-rw-r--r-- | tests/unit/accordion/options.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit/accordion/options.js b/tests/unit/accordion/options.js index c9b2e3aaf..228a8be40 100644 --- a/tests/unit/accordion/options.js +++ b/tests/unit/accordion/options.js @@ -48,6 +48,22 @@ test( "{ active: false }", function() { strictEqual( element.accordion( "option", "active" ), 0 ); } ); +// http://bugs.jqueryui.com/ticket/11938 +test( "{ active: false, collapsible: true }", function() { + expect( 1 ); + var element = $( "#collapsible" ).accordion(), + height = element.outerHeight(); + + element + .accordion( "destroy" ) + .accordion( { + active: false, + collapsible: true + } ) + .accordion( "option", "active", 0 ); + equal( element.outerHeight(), height ); +} ); + test( "{ active: Number }", function() { expect( 8 ); var element = $( "#list1" ).accordion( { |