diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-03 17:21:31 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-03 17:21:31 +0200 |
commit | 7d1c9cd3484b3705ce570468146431e31e7d4847 (patch) | |
tree | 359e20ef03f6adbc8966288bda930f6f50ef3917 /tests/unit | |
parent | cf2b0ca0d8b803c046e219dd6efed120f8e14fea (diff) | |
download | jquery-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')
-rw-r--r-- | tests/unit/accordion/accordion.html | 2 | ||||
-rw-r--r-- | tests/unit/accordion/accordion_methods.js | 15 |
2 files changed, 12 insertions, 5 deletions
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 2b4ae2045..b54db7c33 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -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> 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); |