Skip to content
Permalink
Browse files

Accordion: Added test for heightStyle: fill with absolutely positione…

…d sibling.
  • Loading branch information...
scottgonzalez committed Dec 19, 2010
1 parent 3294520 commit f908281bc3aecc187f5f13abf8c2144d6a45fa82
Showing with 4 additions and 2 deletions.
  1. +4 −2 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 = $("<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);
});

0 comments on commit f908281

Please sign in to comment.
You can’t perform that action at this time.