From cfe3be7234e397c1de3d8ec50404636f1119a648 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 13 Apr 2010 10:36:04 +0200 Subject: [PATCH] Accordion unit tests: One more height-testing hotfix for Safari 3.x --- tests/unit/accordion/accordion_options.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 31aabc0d1..8abbd9786 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -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() { -- 2.39.5