]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Added test for heightStyle: fill with absolutely positioned sibling.
authorScott González <scott.gonzalez@gmail.com>
Sun, 19 Dec 2010 21:26:03 +0000 (16:26 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sun, 19 Dec 2010 21:26:03 +0000 (16:26 -0500)
tests/unit/accordion/accordion_options.js

index 2544ec67da8baa8d5f3e7260e43e993238ef2fc3..26bcb19e5d48c307c5abd1eefd30768647ecc7c5 100644 (file)
@@ -132,8 +132,10 @@ test("{ fillSpace: true } with sibling", function() {
 test("{ fillSpace: true } with multiple siblings", function() {
        $("#navigationWrapper").height(500);
        var sibling = $("<p>Lorem Ipsum</p>");
-       $("#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);
 });