From 7902d3945fc99e0718622f65690dd8556fea40c7 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 3 Apr 2010 17:27:00 +0200 Subject: [PATCH] Accordion: Improved resize-method test, starting with a fixed container height --- tests/unit/accordion/accordion_methods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.5