diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/accordion/accordion.html | 2 | ||||
-rw-r--r-- | tests/unit/accordion/accordion_methods.js | 15 |
2 files changed, 12 insertions, 5 deletions
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 2b4ae2045..b54db7c33 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -39,7 +39,7 @@ <style> #main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; } - #navigation * { margin: 0; padding: 0; font-size: 12px; } + #list1 *, #navigation * { margin: 0; padding: 0; font-size: 12px; } </style> </head> <body> diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index 37807964a..22b19a75a 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -114,7 +114,9 @@ test("activate, jQuery or DOM element", function() { }); test("resize", function() { - var expected = $('#list1').accordion(); + var expected = $('#list1').accordion({ + fillSpace: true + }); var sizes = []; expected.find(".ui-accordion-content").each(function() { @@ -128,10 +130,15 @@ test("resize", function() { expected.find(".ui-accordion-content").each(function() { sizes2.push($(this).outerHeight()); }); - same(sizes, sizes2); + same(sizes, [38, 38, 38]); - expected.find(".ui-accordion-content:first").height(500) - var sizes3 = []; + expected.parent().height(500); + expected.accordion("resize"); + var sizes2 = []; + expected.find(".ui-accordion-content").each(function() { + sizes2.push($(this).outerHeight()); + }); + same(sizes2, [446, 446, 446]); }); })(jQuery); |