Skip to content

Commit ad6b462

Browse files
committed
Accordion unit tests: Cleaned and fixed resize-method test, using #navigation avoids the :visible matching display:none issue in IE8
1 parent 37970c3 commit ad6b462

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/unit/accordion/accordion_methods.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,14 @@ test("activate, jQuery or DOM element", function() {
114114
});
115115

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

121121
var sizes = [];
122122
expected.find(".ui-accordion-content").each(function() {
123123
sizes.push($(this).outerHeight());
124124
});
125-
126-
var actual = expected.accordion('resize');
127-
equals(actual, expected, 'resize is chainable');
128-
129-
var sizes2 = [];
130-
expected.find(".ui-accordion-content").each(function() {
131-
sizes2.push($(this).outerHeight());
132-
});
133125
same(sizes, [246, 246, 246]);
134126

135127
expected.parent().height(500);

0 commit comments

Comments
 (0)