diff options
author | John Resig <jeresig@gmail.com> | 2010-10-12 09:19:49 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-10-12 09:19:49 -0400 |
commit | 5200194f517a7bde7bbe9aa50dc1e81f1e1db441 (patch) | |
tree | e585b0dcfe6e5f25d856f3f52b87bf2eefd311fc /test/unit/traversing.js | |
parent | ff6ceadbfd470463e63708413eb5a55bd7e90c69 (diff) | |
download | jquery-5200194f517a7bde7bbe9aa50dc1e81f1e1db441.tar.gz jquery-5200194f517a7bde7bbe9aa50dc1e81f1e1db441.zip |
Make sure that .find() with multiple direct child selectors is handled correctly. Fixes #7144.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index f9e79372a..3332f077c 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -1,7 +1,7 @@ module("traversing"); test("find(String)", function() { - expect(3); + expect(4); equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' ); // using contents will get comments regular, text, and comment nodes @@ -9,6 +9,7 @@ test("find(String)", function() { equals( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" ); same( jQuery("#main").find("> div").get(), q("foo", "moretests", "tabindex-tests", "liveHandlerOrder", "siblingTest"), "find child elements" ); + same( jQuery("#main").find("> #foo, > #moretests").get(), q("foo", "moretests"), "find child elements" ); }); test("is(String)", function() { |