Accordion unit tests: One more height-testing hotfix for Safari 3.x

This commit is contained in:
jzaefferer 2010-04-13 10:36:04 +02:00
parent 4f4843a9fb
commit cfe3be7234

View File

@ -73,11 +73,11 @@ test("{ autoHeight: false }", function() {
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() {