]> source.dussan.org Git - jquery.git/commitdiff
Forgot to merge in some of the new tests from Sizzle.
authorJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 01:24:14 +0000 (01:24 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 01:24:14 +0000 (01:24 +0000)
test/index.html
test/unit/core.js

index 9a0eccb3e3e21a68d5c1696eaa042ca8d7833adb..c4ba75267f036e6064135e2820cdc5dab8c0b798 100644 (file)
                        <input type="text" id="idTest" name="id"/>
                </form>
                <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="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
index 451bd71c7b938b7133df26e7a4fd06832fe93eeb..ae8490ec2ed8ea215a2368667a1a05583953f321 100644 (file)
@@ -1379,7 +1379,7 @@ test("siblings([String])", function() {
        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(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");
        isSet( jQuery("#en, #sndp").siblings().get(), set, "Check for unique results from siblings" );
 });