diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-05-11 11:43:48 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-05-11 11:43:48 +0000 |
commit | 892824558c0004a519ea3772bdf7205bd50006f5 (patch) | |
tree | 2d768b0a2bbe6faa5aef8f5b8b01771ed035ac39 /tests | |
parent | 2291be6a65f8b0a23ec1cf44546cda0bc7147423 (diff) | |
download | jquery-ui-892824558c0004a519ea3772bdf7205bd50006f5.tar.gz jquery-ui-892824558c0004a519ea3772bdf7205bd50006f5.zip |
Fix for #4222
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/accordion/accordion_options.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 61d27ee3e..1ef6542a3 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -119,6 +119,23 @@ test("{ icons: { 'header': 'ui-icon-foo', 'headerSelected': 'ui-icon-bar' } }", ok(false, 'missing test - untested code is broken code'); }); +test("{ icons: false }", function() { + function icons(on) { + same($("#list1 span.ui-icon:visible").length, on ? 3 : 0); + same( $("#list1").hasClass("ui-accordion-icons"), on ); + } + $("#list1").accordion(); + icons(true); + $("#list1").accordion("destroy").accordion({ + icons: false + }); + icons(false); + $("#list1").accordion("option", "icons", $.ui.accordion.defaults.icons); + icons(true); + $("#list1").accordion("option", "icons", false); + icons(false); +}); + test("{ navigation: false }, default", function() { ok(false, 'missing test - untested code is broken code'); }); |