From f1f6bc3ec43d86f5b2a0c2b8bf711a2d35930717 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 28 Sep 2010 10:33:21 -0700 Subject: Handle child selectors in particular - away from the selector engine. Fixes #7029. --- test/unit/traversing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/unit/traversing.js') diff --git a/test/unit/traversing.js b/test/unit/traversing.js index f5c88e42c..0636f0c33 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -1,12 +1,14 @@ module("traversing"); test("find(String)", function() { - expect(2); + expect(3); equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' ); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); 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" ); }); test("is(String)", function() { -- cgit v1.2.3