From 813886a4dff0cf4be62fea51c3ae8be9ef88e12a Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 7 Dec 2009 15:31:25 -0800 Subject: [PATCH] Only run the visibility selectors if the filter exists. --- test/unit/selector.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/selector.js b/test/unit/selector.js index 233d11a4b..3e65cdae7 100644 --- a/test/unit/selector.js +++ b/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);