From: jzaefferer Date: Sat, 3 Apr 2010 15:27:00 +0000 (+0200) Subject: Accordion: Improved resize-method test, starting with a fixed container height X-Git-Tag: 1.8.1~5^2~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7902d3945fc99e0718622f65690dd8556fea40c7;p=jquery-ui.git Accordion: Improved resize-method test, starting with a fixed container height --- diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index 22b19a75a..894d1f30c 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -114,7 +114,7 @@ test("activate, jQuery or DOM element", function() { }); test("resize", function() { - var expected = $('#list1').accordion({ + var expected = $('#list1').parent().height(300).end().accordion({ fillSpace: true }); @@ -130,7 +130,7 @@ test("resize", function() { expected.find(".ui-accordion-content").each(function() { sizes2.push($(this).outerHeight()); }); - same(sizes, [38, 38, 38]); + same(sizes, [246, 246, 246]); expected.parent().height(500); expected.accordion("resize");