Handle child selectors in particular - away from the selector engine. Fixes #7029.

This commit is contained in:
John Resig 2010-09-28 10:33:21 -07:00
parent 873c28425f
commit f1f6bc3ec4
2 changed files with 9 additions and 1 deletions

View file

@ -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() {