Commit 4694e537 authored by John Resig's avatar John Resig

Forgot to merge in some of the new tests from Sizzle.

parent cc66e6af
...@@ -112,6 +112,13 @@ ...@@ -112,6 +112,13 @@
<input type="text" id="idTest" name="id"/> <input type="text" id="idTest" name="id"/>
</form> </form>
<table id="table"></table> <table id="table"></table>
<form id="name-tests">
<!-- Inputs with a grouped name attribute. -->
<input name="types[]" id="types_all" type="checkbox" value="all" />
<input name="types[]" id="types_anime" type="checkbox" value="anime" />
<input name="types[]" id="types_movie" type="checkbox" value="movie" />
</form>
<div id="fx-queue"> <div id="fx-queue">
<div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div> <div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
......
...@@ -1379,7 +1379,7 @@ test("siblings([String])", function() { ...@@ -1379,7 +1379,7 @@ test("siblings([String])", function() {
isSet( jQuery("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( jQuery("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" );
isSet( jQuery("#sndp").siblings(":has(code)").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( jQuery("#sndp").siblings(":has(code)").get(), q("sap"), "Check for filtered siblings (has code child element)" );
isSet( jQuery("#sndp").siblings(":has(a)").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" ); isSet( jQuery("#sndp").siblings(":has(a)").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" );
isSet( jQuery("#foo").siblings("form, b").get(), q("form", "lengthtest", "testForm", "floatTest"), "Check for multiple filters" ); isSet( jQuery("#foo").siblings("form, b").get(), q("form", "lengthtest", "name-tests", "testForm", "floatTest"), "Check for multiple filters" );
var set = document.querySelectorAll ? q("en", "sap", "sndp") : q("sndp", "sap", "en"); var set = document.querySelectorAll ? q("en", "sap", "sndp") : q("sndp", "sap", "en");
isSet( jQuery("#en, #sndp").siblings().get(), set, "Check for unique results from siblings" ); isSet( jQuery("#en, #sndp").siblings().get(), set, "Check for unique results from siblings" );
}); });
......
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