mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Only run the visibility selectors if the filter exists.
This commit is contained in:
parent
15f9d91c78
commit
813886a4df
@ -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() {
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user