diff options
author | John Resig <jeresig@gmail.com> | 2010-09-28 10:33:21 -0700 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-09-28 10:33:21 -0700 |
commit | f1f6bc3ec43d86f5b2a0c2b8bf711a2d35930717 (patch) | |
tree | 450f858d4e4441cb81564344cf5fd206062279ba /test/unit/traversing.js | |
parent | 873c28425fb64fdb48cfa09d17041bded39b301f (diff) | |
download | jquery-f1f6bc3ec43d86f5b2a0c2b8bf711a2d35930717.tar.gz jquery-f1f6bc3ec43d86f5b2a0c2b8bf711a2d35930717.zip |
Handle child selectors in particular - away from the selector engine. Fixes #7029.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 4 |
1 files changed, 3 insertions, 1 deletions
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() { |