aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/accordion/accordion_methods.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:21:31 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:21:31 +0200
commit7d1c9cd3484b3705ce570468146431e31e7d4847 (patch)
tree359e20ef03f6adbc8966288bda930f6f50ef3917 /tests/unit/accordion/accordion_methods.js
parentcf2b0ca0d8b803c046e219dd6efed120f8e14fea (diff)
downloadjquery-ui-7d1c9cd3484b3705ce570468146431e31e7d4847.tar.gz
jquery-ui-7d1c9cd3484b3705ce570468146431e31e7d4847.zip
Accordion: Rewrote the resize method test; fails in IE8, probably related to :visible issue
Diffstat (limited to 'tests/unit/accordion/accordion_methods.js')
-rw-r--r--tests/unit/accordion/accordion_methods.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js
index 37807964a..22b19a75a 100644
--- a/tests/unit/accordion/accordion_methods.js
+++ b/tests/unit/accordion/accordion_methods.js
@@ -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);