diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-09-09 17:26:51 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-09-09 17:26:51 +0000 |
commit | a4f25f9311c46c086eb6bb58b0afdcf66e4099d4 (patch) | |
tree | d9807d71b74cbc06d50862798e0134dc70fb856e /src | |
parent | da74bde0b7ab66cee11c7e6542ee29579da53948 (diff) | |
download | jquery-a4f25f9311c46c086eb6bb58b0afdcf66e4099d4.tar.gz jquery-a4f25f9311c46c086eb6bb58b0afdcf66e4099d4.zip |
Added test for both siblings() and siblings(String) to verify bug #168
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/jquery.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9b9cfa4e0..041b262a2 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -2916,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 @@ -2929,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 |