]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion unit tests: Cleaned and fixed resize-method test, using #navigation avoids...
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 12 Apr 2010 14:12:05 +0000 (16:12 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 12 Apr 2010 14:12:05 +0000 (16:12 +0200)
tests/unit/accordion/accordion_methods.js

index 894d1f30cb9abef8fd1e90162d8469d686b3f172..f2ed8dadfcb54ab0fc5bda57637bbdc59fc178ac 100644 (file)
@@ -114,7 +114,7 @@ test("activate, jQuery or DOM element", function() {
 });
 
 test("resize", function() {
-       var expected = $('#list1').parent().height(300).end().accordion({
+       var expected = $('#navigation').parent().height(300).end().accordion({
                fillSpace: true
        });
        
@@ -122,14 +122,6 @@ test("resize", function() {
        expected.find(".ui-accordion-content").each(function() {
                sizes.push($(this).outerHeight());
        });
-       
-       var actual = expected.accordion('resize');
-       equals(actual, expected, 'resize is chainable');
-       
-       var sizes2 = [];
-       expected.find(".ui-accordion-content").each(function() {
-               sizes2.push($(this).outerHeight());
-       });
        same(sizes, [246, 246, 246]);
        
        expected.parent().height(500);