Skip to content
Permalink
Browse files

Accordion unit tests: Cleaned and fixed resize-method test, using #na…

…vigation avoids the :visible matching display:none issue in IE8
  • Loading branch information
jzaefferer committed Apr 12, 2010
1 parent 37970c3 commit ad6b4624b0d401568556eb7a8494e5321c43b75f
Showing with 1 addition and 9 deletions.
  1. +1 −9 tests/unit/accordion/accordion_methods.js
@@ -114,22 +114,14 @@ test("activate, jQuery or DOM element", function() {
});

test("resize", function() {
var expected = $('#list1').parent().height(300).end().accordion({
var expected = $('#navigation').parent().height(300).end().accordion({
fillSpace: true
});

var sizes = [];
expected.find(".ui-accordion-content").each(function() {
sizes.push($(this).outerHeight());
});

var actual = expected.accordion('resize');
equals(actual, expected, 'resize is chainable');

var sizes2 = [];
expected.find(".ui-accordion-content").each(function() {
sizes2.push($(this).outerHeight());
});
same(sizes, [246, 246, 246]);

expected.parent().height(500);

0 comments on commit ad6b462

Please sign in to comment.
You can’t perform that action at this time.