mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Rewrote the resize method test; fails in IE8, probably related to :visible issue
This commit is contained in:
parent
cf2b0ca0d8
commit
7d1c9cd348
@ -39,7 +39,7 @@
|
||||
|
||||
<style>
|
||||
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
|
||||
#navigation * { margin: 0; padding: 0; font-size: 12px; }
|
||||
#list1 *, #navigation * { margin: 0; padding: 0; font-size: 12px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -114,7 +114,9 @@ test("activate, jQuery or DOM element", function() {
|
||||
});
|
||||
|
||||
test("resize", function() {
|
||||
var expected = $('#list1').accordion();
|
||||
var expected = $('#list1').accordion({
|
||||
fillSpace: true
|
||||
});
|
||||
|
||||
var sizes = [];
|
||||
expected.find(".ui-accordion-content").each(function() {
|
||||
@ -128,10 +130,15 @@ test("resize", function() {
|
||||
expected.find(".ui-accordion-content").each(function() {
|
||||
sizes2.push($(this).outerHeight());
|
||||
});
|
||||
same(sizes, sizes2);
|
||||
same(sizes, [38, 38, 38]);
|
||||
|
||||
expected.find(".ui-accordion-content:first").height(500)
|
||||
var sizes3 = [];
|
||||
expected.parent().height(500);
|
||||
expected.accordion("resize");
|
||||
var sizes2 = [];
|
||||
expected.find(".ui-accordion-content").each(function() {
|
||||
sizes2.push($(this).outerHeight());
|
||||
});
|
||||
same(sizes2, [446, 446, 446]);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user