mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Accordion unit tests: Cleaned and fixed resize-method test, using #navigation avoids the :visible matching display:none issue in IE8
This commit is contained in:
parent
37970c3685
commit
ad6b4624b0
@ -114,7 +114,7 @@ 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
|
||||
});
|
||||
|
||||
@ -122,14 +122,6 @@ test("resize", function() {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user