aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-12-19 16:26:03 -0500
committerScott González <scott.gonzalez@gmail.com>2010-12-19 16:26:03 -0500
commitf908281bc3aecc187f5f13abf8c2144d6a45fa82 (patch)
treefc99d684e5be130bfd9bdf2f70082fc27ee75104 /tests
parent32945202da1854a1b603db4994a263f4f789d398 (diff)
downloadjquery-ui-f908281bc3aecc187f5f13abf8c2144d6a45fa82.tar.gz
jquery-ui-f908281bc3aecc187f5f13abf8c2144d6a45fa82.zip
Accordion: Added test for heightStyle: fill with absolutely positioned sibling.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_options.js6
1 files 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 = $("<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);
});