aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2008-12-12 13:58:41 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2008-12-12 13:58:41 +0000
commit1d357cf4b4303700144f40f4f7a8b4b415b29c18 (patch)
tree756c17229262e6941cf84c7bb8e0e4073a953da7 /tests
parentc26203417275a5955afa63e303409323438d3512 (diff)
downloadjquery-ui-1d357cf4b4303700144f40f4f7a8b4b415b29c18.tar.gz
jquery-ui-1d357cf4b4303700144f40f4f7a8b4b415b29c18.zip
Accordion: Fixed jumpy behaviour (#3646) by wrapping content elements in an additional div
Diffstat (limited to 'tests')
-rw-r--r--tests/accordion.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/accordion.js b/tests/accordion.js
index 99a368c37..d9f8c4b64 100644
--- a/tests/accordion.js
+++ b/tests/accordion.js
@@ -10,7 +10,7 @@ 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").eq(i).is(":visible"), n);
+ equals(accordion.find(".ui-accordion-content").parent().eq(i).is(":visible"), n);
});
}
@@ -24,13 +24,13 @@ test("basics", function() {
test("autoheight", function() {
$('#navigation').accordion({ autoHeight: false });
- equals( 90, $('#navigation ul:first').height() );
- equals( 126, $('#navigation ul:eq(1)').height() );
- equals( 54, $('#navigation ul:last').height() );
+ equals( 90, $('#navigation div:first').height() );
+ equals( 126, $('#navigation div:eq(1)').height() );
+ equals( 54, $('#navigation div:last').height() );
$('#navigation').accordion("destroy").accordion({ autoHeight: true });
- equals( 126, $('#navigation ul:first').height() );
- equals( 126, $('#navigation ul:eq(1)').height() );
- equals( 126, $('#navigation ul:last').height() );
+ equals( 126, $('#navigation div:first').height() );
+ equals( 126, $('#navigation div:eq(1)').height() );
+ equals( 126, $('#navigation div:last').height() );
});
test("activate, numeric", function() {
@@ -89,7 +89,7 @@ test("activate, jQuery or DOM element", function() {
function state2(accordion) {
var args = $.makeArray(arguments).slice(1);
$.each(args, function(i, n) {
- equals(accordion.find("ul").eq(i).is(":visible"), n);
+ equals(accordion.find("div").eq(i).is(":visible"), n);
});
}