diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-30 02:35:37 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-30 02:35:37 +0000 |
commit | 2c1d4675a8e5424861db3d797e5fa38760c0a872 (patch) | |
tree | 40a1845d00059c29434c1af3dff0ef2499a0b51b /tests/unit/accordion | |
parent | 1631cf4ba3615ac6b61a3bf298c7132081dc28ea (diff) | |
download | jquery-ui-2c1d4675a8e5424861db3d797e5fa38760c0a872.tar.gz jquery-ui-2c1d4675a8e5424861db3d797e5fa38760c0a872.zip |
Accordion: Fixed #3788: Removed wrapper divs and smoothed animations, allowing accordions to work with dl's and ul's again.
Diffstat (limited to 'tests/unit/accordion')
-rw-r--r-- | tests/unit/accordion/accordion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/accordion/accordion.js b/tests/unit/accordion/accordion.js index d9f8c4b64..e39469827 100644 --- a/tests/unit/accordion/accordion.js +++ b/tests/unit/accordion/accordion.js @@ -10,13 +10,13 @@ jQuery.ui.accordion.defaults.animated = false; function state(accordion) { var args = $.makeArray(arguments).slice(1); $.each(args, function(i, n) { - equals(accordion.find(".ui-accordion-content").parent().eq(i).is(":visible"), n); + equals(accordion.find(".ui-accordion-content").eq(i).is(":visible"), n); }); } $.fn.triggerEvent = function(type, target) { return this.triggerHandler(type, [jQuery.event.fix({ type: type, target: target })]); -} +}; test("basics", function() { state($('#list1').accordion(), 1, 0, 0); |