Skip to content

Commit

Permalink
Only run the visibility selectors if the filter exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Dec 7, 2009
1 parent 15f9d91 commit 813886a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -401,6 +402,7 @@ test("pseudo - visibility", function() {
t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
$div.remove();
});
}

test("pseudo - form", function() {
expect(8);
Expand Down

0 comments on commit 813886a

Please sign in to comment.