aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:10:50 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-03 17:10:50 +0200
commitda0fe50ec5c6ce6a7e59deb936d341b0af1ae912 (patch)
tree49db53e935e1f2a26204c2510296c37dc892f41c /tests
parentad5bfc7f604bf298ecfeac77db50081fc33dbfd0 (diff)
downloadjquery-ui-da0fe50ec5c6ce6a7e59deb936d341b0af1ae912.tar.gz
jquery-ui-da0fe50ec5c6ce6a7e59deb936d341b0af1ae912.zip
Accordion unit tests: Use display!=none instead of :visible to work around :visible issue in IE8
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion.html4
1 files changed, 3 insertions, 1 deletions
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)
}