]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Improved resize-method test, starting with a fixed container height
authorjzaefferer <joern.zaefferer@gmail.com>
Sat, 3 Apr 2010 15:27:00 +0000 (17:27 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Sat, 3 Apr 2010 15:27:00 +0000 (17:27 +0200)
tests/unit/accordion/accordion_methods.js

index 22b19a75a0a76fa47effb426812a4fd2e6961e8b..894d1f30cb9abef8fd1e90162d8469d686b3f172 100644 (file)
@@ -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");