diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-03 17:27:00 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-03 17:27:00 +0200 |
commit | 7902d3945fc99e0718622f65690dd8556fea40c7 (patch) | |
tree | 2b0c685a6235ba2ade7b23cd05a9b9bb09120247 | |
parent | 7d1c9cd3484b3705ce570468146431e31e7d4847 (diff) | |
download | jquery-ui-7902d3945fc99e0718622f65690dd8556fea40c7.tar.gz jquery-ui-7902d3945fc99e0718622f65690dd8556fea40c7.zip |
Accordion: Improved resize-method test, starting with a fixed container height
-rw-r--r-- | tests/unit/accordion/accordion_methods.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js index 22b19a75a..894d1f30c 100644 --- a/tests/unit/accordion/accordion_methods.js +++ b/tests/unit/accordion/accordion_methods.js @@ -114,7 +114,7 @@ test("activate, jQuery or DOM element", function() { }); test("resize", function() { - var expected = $('#list1').accordion({ + var expected = $('#list1').parent().height(300).end().accordion({ fillSpace: true }); @@ -130,7 +130,7 @@ test("resize", function() { expected.find(".ui-accordion-content").each(function() { sizes2.push($(this).outerHeight()); }); - same(sizes, [38, 38, 38]); + same(sizes, [246, 246, 246]); expected.parent().height(500); expected.accordion("resize"); |