]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion unit tests: Use display!=none instead of :visible to work around :visible...
authorjzaefferer <joern.zaefferer@gmail.com>
Sat, 3 Apr 2010 15:10:50 +0000 (17:10 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Sat, 3 Apr 2010 15:10:50 +0000 (17:10 +0200)
tests/unit/accordion/accordion.html

index 9b6cb63f28f42b0670ccadde208bbada9fa50a05..2b4ae20457667c0f829b9fe5ade018eaf3a62836 100644 (file)
@@ -23,7 +23,9 @@
                        var args = $.makeArray(arguments).slice(1);
                        var result = [];
                        $.each(args, function(i, n) {
-                               result.push( accordion.find(".ui-accordion-content").eq(i).is(":visible") ? 1 : 0 );
+                               result.push( accordion.find(".ui-accordion-content").eq(i).filter(function() {
+                                       return $(this).css("display") != "none"
+                               }).length ? 1 : 0 );
                        });
                        same(args, result)
                }