Added test for both siblings() and siblings(String) to verify bug #168
[jquery.git] / src / jquery / jquery.js
index 1ca039b..041b262 100644 (file)
@@ -435,6 +435,10 @@ jQuery.fn = jQuery.prototype = {
         *
         * @test $("#name").attr('name', 'something');
         * ok( $("#name").name() == 'something', 'Set name attribute' );
+        * @test $("#check2").attr('checked', true);
+        * ok( document.getElementById('check2').checked == true, 'Set checked attribute' );
+        * $("#check2").attr('checked', false);
+        * ok( document.getElementById('check2').checked == false, 'Set checked attribute' );
         *
         * @name attr
         * @type jQuery
@@ -2912,6 +2916,8 @@ jQuery.macros = {
                 * @before <p>Hello</p><div><span>Hello Again</span></div><p>And Again</p>
                 * @result [ <p>Hello</p>, <p>And Again</p> ]
                 *
+                * @test isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); 
+                *
                 * @name siblings
                 * @type jQuery
                 * @cat DOM/Traversing
@@ -2925,6 +2931,9 @@ jQuery.macros = {
                 * @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p>
                 * @result [ <p class="selected">Hello Again</p> ]
                 *
+                * @test isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); 
+                * @test isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" );
+                *
                 * @name siblings
                 * @type jQuery
                 * @param String expr An expression to filter the sibling Elements with