Skip to content
Permalink
Browse files

Accordion unit tests: Use display!=none instead of :visible to work a…

…round :visible issue in IE8
  • Loading branch information
jzaefferer committed Apr 3, 2010
1 parent ad5bfc7 commit da0fe50ec5c6ce6a7e59deb936d341b0af1ae912
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/unit/accordion/accordion.html
@@ -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)
}

0 comments on commit da0fe50

Please sign in to comment.
You can’t perform that action at this time.