From: Scott González Date: Sun, 19 Dec 2010 21:26:03 +0000 (-0500) Subject: Accordion: Added test for heightStyle: fill with absolutely positioned sibling. X-Git-Tag: 1.9m4~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f908281bc3aecc187f5f13abf8c2144d6a45fa82;p=jquery-ui.git Accordion: Added test for heightStyle: fill with absolutely positioned sibling. --- 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); });