aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-10-12 10:13:00 -0400
committerJohn Resig <jeresig@gmail.com>2010-10-12 10:13:00 -0400
commit085de849595ac99677795ed1524f840877a6b7bb (patch)
tree16a1450c2ef9ceb380ab05b38411f2ba10670442 /test
parent5200194f517a7bde7bbe9aa50dc1e81f1e1db441 (diff)
downloadjquery-085de849595ac99677795ed1524f840877a6b7bb.tar.gz
jquery-085de849595ac99677795ed1524f840877a6b7bb.zip
The child selector-prefix branch doesn't work with selectors that have a larger depth. Removing for now - will need to re-evaluate in the future.
Diffstat (limited to 'test')
-rw-r--r--test/unit/traversing.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 3332f077c..0d079f19a 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() {