From f908281bc3aecc187f5f13abf8c2144d6a45fa82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 19 Dec 2010 16:26:03 -0500 Subject: [PATCH] Accordion: Added test for heightStyle: fill with absolutely positioned sibling. --- tests/unit/accordion/accordion_options.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js index 2544ec67d..26bcb19e5 100644 --- a/tests/unit/accordion/accordion_options.js +++ b/tests/unit/accordion/accordion_options.js @@ -132,8 +132,10 @@ test("{ fillSpace: true } with sibling", function() { test("{ fillSpace: true } with multiple siblings", function() { $("#navigationWrapper").height(500); var sibling = $("

Lorem Ipsum

"); - $("#navigationWrapper").prepend( sibling.height(100) ); - $("#navigationWrapper").prepend( sibling.clone().height(50) ); + $("#navigationWrapper") + .prepend( sibling.clone().height(100) ) + .prepend( sibling.clone().height(100).css( "position", "absolute" ) ) + .prepend( sibling.clone().height(50) ); //sibling.outerHeight(true) == 126 equalHeights($('#navigation').accordion({ fillSpace: true}), 244, 256); }); -- 2.39.5