aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:27:00 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:27:00 +0200
commit7902d3945fc99e0718622f65690dd8556fea40c7 (patch)
tree2b0c685a6235ba2ade7b23cd05a9b9bb09120247 /tests
parent7d1c9cd3484b3705ce570468146431e31e7d4847 (diff)
downloadjquery-ui-7902d3945fc99e0718622f65690dd8556fea40c7.tar.gz
jquery-ui-7902d3945fc99e0718622f65690dd8556fea40c7.zip
Accordion: Improved resize-method test, starting with a fixed container height
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_methods.js4
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");