From da0fe50ec5c6ce6a7e59deb936d341b0af1ae912 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 3 Apr 2010 17:10:50 +0200 Subject: Accordion unit tests: Use display!=none instead of :visible to work around :visible issue in IE8 --- tests/unit/accordion/accordion.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index 9b6cb63f2..2b4ae2045 100644 --- a/tests/unit/accordion/accordion.html +++ b/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) } -- cgit v1.2.3