X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Ftraversing.js;h=3332f077c4753824278f5828a6c328171a38ca54;hb=5200194f517a7bde7bbe9aa50dc1e81f1e1db441;hp=f9e79372a761cc2196a04023a9399680b211925e;hpb=ff6ceadbfd470463e63708413eb5a55bd7e90c69;p=jquery.git diff --git a/test/unit/traversing.js b/test/unit/traversing.js index f9e7937..3332f07 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() {