var accordion = $('#navigation').accordion({ autoHeight: false });
var sizes = [];
accordion.find(".ui-accordion-content").each(function() {
- sizes.push($(this).outerHeight());
+ sizes.push($(this).height());
});
- ok( sizes[0] >= 70 && sizes[0] <= 90 );
- ok( sizes[1] >= 98 && sizes[1] <= 126 );
- ok( sizes[2] >= 54 && sizes[2] <= 54 );
+ ok( sizes[0] >= 70 && sizes[0] <= 90, "was " + sizes[0] );
+ ok( sizes[1] >= 98 && sizes[1] <= 126, "was " + sizes[1] );
+ ok( sizes[2] >= 54 && sizes[2] <= 54, "was " + sizes[2] );
});
test("{ collapsible: false }, default", function() {