X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Ftraversing.js;h=0d079f19a4bbbae1b4200c4923352702c663483c;hp=3332f077c4753824278f5828a6c328171a38ca54;hb=085de849595ac99677795ed1524f840877a6b7bb;hpb=5200194f517a7bde7bbe9aa50dc1e81f1e1db441 diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 3332f07..0d079f1 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -1,7 +1,7 @@ module("traversing"); test("find(String)", function() { - expect(4); + expect(5); equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' ); // using contents will get comments regular, text, and comment nodes @@ -10,6 +10,7 @@ test("find(String)", function() { 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" ); + same( jQuery("#main").find("> #foo > p").get(), q("sndp", "en", "sap"), "find child elements" ); }); test("is(String)", function() {