Skip to content
Permalink
Browse files

Only run the visibility selectors if the filter exists.

  • Loading branch information
jeresig committed Dec 7, 2009
1 parent 15f9d91 commit 813886a4dff0cf4be62fea51c3ae8be9ef88e12a
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/unit/selector.js
@@ -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);

0 comments on commit 813886a

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