From 892824558c0004a519ea3772bdf7205bd50006f5 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Mon, 11 May 2009 11:43:48 +0000 Subject: Fix for #4222 --- tests/unit/accordion/accordion_options.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') 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'); }); -- cgit v1.2.3