diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-10-31 23:36:43 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-10-31 23:36:43 -0400 |
commit | 8657538b33ed80864047ea5c2ebafc65cb199bb7 (patch) | |
tree | 0ce54e29d84352640f94b72ddd59d77b7805de09 /test/unit/traversing.js | |
parent | 5ed0450dc471f61e4c5d5df30df3f3294a3e6bd6 (diff) | |
download | jquery-8657538b33ed80864047ea5c2ebafc65cb199bb7.tar.gz jquery-8657538b33ed80864047ea5c2ebafc65cb199bb7.zip |
Test case for #12816
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 f374f53c2..6e50e1cc4 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -1,7 +1,7 @@ module("traversing", { teardown: moduleTeardown }); test( "find(String)", function() { - expect( 6 ); + expect( 7 ); equal( "Yahoo", jQuery("#foo").find(".blogTest").text(), "Check for find" ); // using contents will get comments regular, text, and comment nodes @@ -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("> #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("#siblingTest, #siblingfirst").find("+ *").get(), q( "siblingnext", "fx-test-group" ), "ensure document order" ); }); test( "find(node|jQuery object)", function() { |