aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-07 15:31:25 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-07 15:31:25 -0800
commit813886a4dff0cf4be62fea51c3ae8be9ef88e12a (patch)
treee156029d07daf09a30cadcea2506fad53571da87 /test/unit/selector.js
parent15f9d91c78f672823c807e4f3aa60788a85ed33f (diff)
downloadjquery-813886a4dff0cf4be62fea51c3ae8be9ef88e12a.tar.gz
jquery-813886a4dff0cf4be62fea51c3ae8be9ef88e12a.zip
Only run the visibility selectors if the filter exists.
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r--test/unit/selector.js2
1 files changed, 2 insertions, 0 deletions
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);