]> source.dussan.org Git - jquery.git/commitdiff
Check Sizzle or jQuery.
authorJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 23:33:14 +0000 (15:33 -0800)
committerJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 23:33:14 +0000 (15:33 -0800)
test/unit/selector.js

index 3e65cdae77370d7b7eb3a44b59df425852f41167..0a5d0bbff0664da890d78b237c4ffa0389e0add8 100644 (file)
@@ -379,7 +379,7 @@ test("pseudo - position", function() {
        t( "Check element position", "div#nothiddendiv:first > div:first", ["nothiddendivchild"] );
 });
 
-if ( Sizzle.selectors.filters.visibility ) {
+if ( (window.Sizzle || jQuery.find).selectors.filters.visibility ) {
 test("pseudo - visibility", function() {
        expect(11);