Skip to content
Permalink
Browse files

Accordion: Improved resize-method test, starting with a fixed contain…

…er height
  • Loading branch information
jzaefferer committed Apr 3, 2010
1 parent 7d1c9cd commit 7902d3945fc99e0718622f65690dd8556fea40c7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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");

0 comments on commit 7902d39

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