Commit 8657538b authored by Dave Methvin's avatar Dave Methvin

Test case for #12816

parent 5ed0450d
module("traversing", { teardown: moduleTeardown }); module("traversing", { teardown: moduleTeardown });
test( "find(String)", function() { test( "find(String)", function() {
expect( 6 ); expect( 7 );
equal( "Yahoo", jQuery("#foo").find(".blogTest").text(), "Check for find" ); equal( "Yahoo", jQuery("#foo").find(".blogTest").text(), "Check for find" );
// using contents will get comments regular, text, and comment nodes // using contents will get comments regular, text, and comment nodes
...@@ -12,6 +12,8 @@ test( "find(String)", function() { ...@@ -12,6 +12,8 @@ test( "find(String)", function() {
deepEqual( jQuery("#qunit-fixture").find("> div").get(), q( "foo", "moretests", "tabindex-tests", "liveHandlerOrder", "siblingTest", "fx-test-group" ), "find child elements" ); deepEqual( jQuery("#qunit-fixture").find("> div").get(), q( "foo", "moretests", "tabindex-tests", "liveHandlerOrder", "siblingTest", "fx-test-group" ), "find child elements" );
deepEqual( jQuery("#qunit-fixture").find("> #foo, > #moretests").get(), q( "foo", "moretests" ), "find child elements" ); deepEqual( jQuery("#qunit-fixture").find("> #foo, > #moretests").get(), q( "foo", "moretests" ), "find child elements" );
deepEqual( jQuery("#qunit-fixture").find("> #foo > p").get(), q( "sndp", "en", "sap" ), "find child elements" ); deepEqual( jQuery("#qunit-fixture").find("> #foo > p").get(), q( "sndp", "en", "sap" ), "find child elements" );
deepEqual( jQuery("#siblingTest, #siblingfirst").find("+ *").get(), q( "siblingnext", "fx-test-group" ), "ensure document order" );
}); });
test( "find(node|jQuery object)", function() { test( "find(node|jQuery object)", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment