Accordion unit tests: Use display!=none instead of :visible to work around :visible issue in IE8

This commit is contained in:
jzaefferer 2010-04-03 17:10:50 +02:00
parent ad5bfc7f60
commit da0fe50ec5

View 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)
}