Commit 813886a4 authored by John Resig's avatar John Resig

Only run the visibility selectors if the filter exists.

parent 15f9d91c
...@@ -379,6 +379,7 @@ test("pseudo - position", function() { ...@@ -379,6 +379,7 @@ test("pseudo - position", function() {
t( "Check element position", "div#nothiddendiv:first > div:first", ["nothiddendivchild"] ); t( "Check element position", "div#nothiddendiv:first > div:first", ["nothiddendivchild"] );
}); });
if ( Sizzle.selectors.filters.visibility ) {
test("pseudo - visibility", function() { test("pseudo - visibility", function() {
expect(11); expect(11);
...@@ -401,6 +402,7 @@ test("pseudo - visibility", function() { ...@@ -401,6 +402,7 @@ test("pseudo - visibility", function() {
t( "Is Not Visible", '#nothiddendivchild:hidden', [] ); t( "Is Not Visible", '#nothiddendivchild:hidden', [] );
$div.remove(); $div.remove();
}); });
}
test("pseudo - form", function() { test("pseudo - form", function() {
expect(8); expect(8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment