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() {
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);
......
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