Skip to content

Commit 7902d39

Browse files
committed
Accordion: Improved resize-method test, starting with a fixed container height
1 parent 7d1c9cd commit 7902d39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/accordion/accordion_methods.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ test("activate, jQuery or DOM element", function() {
114114
});
115115

116116
test("resize", function() {
117-
var expected = $('#list1').accordion({
117+
var expected = $('#list1').parent().height(300).end().accordion({
118118
fillSpace: true
119119
});
120120

@@ -130,7 +130,7 @@ test("resize", function() {
130130
expected.find(".ui-accordion-content").each(function() {
131131
sizes2.push($(this).outerHeight());
132132
});
133-
same(sizes, [38, 38, 38]);
133+
same(sizes, [246, 246, 246]);
134134

135135
expected.parent().height(500);
136136
expected.accordion("resize");

0 commit comments

Comments
 (0)