From: Jörn Zaefferer Date: Sat, 9 Sep 2006 17:26:51 +0000 (+0000) Subject: Added test for both siblings() and siblings(String) to verify bug #168 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=a4f25f9311c46c086eb6bb58b0afdcf66e4099d4;p=jquery.git Added test for both siblings() and siblings(String) to verify bug #168 --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9b9cfa4..041b262 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -2916,6 +2916,8 @@ jQuery.macros = { * @before

Hello

Hello Again

And Again

* @result [

Hello

,

And Again

] * + * @test isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); + * * @name siblings * @type jQuery * @cat DOM/Traversing @@ -2929,6 +2931,9 @@ jQuery.macros = { * @before
Hello

Hello Again

And Again

* @result [

Hello Again

] * + * @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