Skip to content

Commit da0fe50

Browse files
committed
Accordion unit tests: Use display!=none instead of :visible to work around :visible issue in IE8
1 parent ad5bfc7 commit da0fe50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/accordion/accordion.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
var args = $.makeArray(arguments).slice(1);
2424
var result = [];
2525
$.each(args, function(i, n) {
26-
result.push( accordion.find(".ui-accordion-content").eq(i).is(":visible") ? 1 : 0 );
26+
result.push( accordion.find(".ui-accordion-content").eq(i).filter(function() {
27+
return $(this).css("display") != "none"
28+
}).length ? 1 : 0 );
2729
});
2830
same(args, result)
2931
}

0 commit comments

Comments
 (0)