]> source.dussan.org Git - jquery.git/commitdiff
Only run the visibility selectors if the filter exists.
authorJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 23:31:25 +0000 (15:31 -0800)
committerJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 23:31:25 +0000 (15:31 -0800)
test/unit/selector.js

index 233d11a4be9287166ec07f66baa84e22a8e9c60b..3e65cdae77370d7b7eb3a44b59df425852f41167 100644 (file)
@@ -379,6 +379,7 @@ test("pseudo - position", function() {
        t( "Check element position", "div#nothiddendiv:first > div:first", ["nothiddendivchild"] );
 });
 
+if ( Sizzle.selectors.filters.visibility ) {
 test("pseudo - visibility", function() {
        expect(11);
 
@@ -401,6 +402,7 @@ test("pseudo - visibility", function() {
        t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
        $div.remove();
 });
+}
 
 test("pseudo - form", function() {
        expect(8);