diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-02 02:29:31 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-02 02:29:31 +0000 |
commit | 94c16d6378b51f8f9d60768f902a0dbf0d6d5087 (patch) | |
tree | 1d2f0dd54652f37db96721e0da9226f865be21d4 /tests | |
parent | 43ebec65763a6cd62b1d5189af83a954bb54ea53 (diff) | |
download | jquery-ui-94c16d6378b51f8f9d60768f902a0dbf0d6d5087.tar.gz jquery-ui-94c16d6378b51f8f9d60768f902a0dbf0d6d5087.zip |
Accordion: Fixed #3969: Deprecated alwaysOpen for collapsible option; fixed demos, tests, and using alwaysOpen on init.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/accordion/accordion.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/accordion/accordion.js b/tests/unit/accordion/accordion.js index 8755f75af..5fa7845ef 100644 --- a/tests/unit/accordion/accordion.js +++ b/tests/unit/accordion/accordion.js @@ -48,8 +48,8 @@ test("activate, numeric", function() { state(ac, 0, 0, 1); }); -test("activate, boolean and numeric, alwaysOpen:false", function() { - var ac = $('#list1').accordion({alwaysOpen: false}).accordion("activate", 2); +test("activate, boolean and numeric, collapsible:true", function() { + var ac = $('#list1').accordion({collapsible: true}).accordion("activate", 2); state(ac, 0, 0, 1); ok("x", "----"); ac.accordion("activate", 0); @@ -59,7 +59,7 @@ test("activate, boolean and numeric, alwaysOpen:false", function() { state(ac, 0, 0, 0); }); -test("activate, boolean, alwaysOpen:true", function() { +test("activate, boolean, collapsible:false", function() { var ac = $('#list1').accordion().accordion("activate", 2); state(ac, 0, 0, 1); ac.accordion("activate", -1); @@ -102,7 +102,7 @@ test("handle click on header-descendant", function() { test("active:false", function() { $("#list1").accordion({ active: false, - alwaysOpen: false + collapsible: true }); equals( $("#list1 a.selected").size(), 0, "no headers selected" ); }); @@ -111,7 +111,7 @@ test("accordionchange event, open closed and close again", function() { expect(8); $("#list1").accordion({ active: false, - alwaysOpen: false + collapsible: true }) .one("accordionchange", function(event, ui) { equals( ui.oldHeader.size(), 0 ); |