diff options
author | Nguyen Phuc Lam <ruado1987@gmail.com> | 2013-02-26 22:55:36 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-02-26 22:57:12 -0500 |
commit | 8bc7bdebefb23ef31247dda50012ee19ce9f58af (patch) | |
tree | fc837541d8daf44ebe3b63c7ebe8bd41672a17f3 /test/unit/traversing.js | |
parent | 85f1985f2444da01054800d6f41c3a6057da2e16 (diff) | |
download | jquery-8bc7bdebefb23ef31247dda50012ee19ce9f58af.tar.gz jquery-8bc7bdebefb23ef31247dda50012ee19ce9f58af.zip |
Ref #13283, move .andSelf() to deprecated.js. Close gh-1170.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 48560dbf6..9d8c0d20d 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -10,7 +10,7 @@ test( "find(String) under non-elements", function() { var j = jQuery("#nonnodes").contents(); equal( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" ); - equal( j.find("div").andSelf().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" ); + equal( j.find("div").addBack().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" ); }); test( "find(leading combinator)", function() { @@ -45,7 +45,7 @@ test( "find(node|jQuery object)", function() { equal( $two.find( $first ).length, 0, "first is in the collection and not within two" ); equal( $two.find( $first ).length, 0, "first is in the collection and not within two(node)" ); - equal( $two.find( $foo[ 0 ] ).andSelf().length, 2, "find preserves the pushStack, see #12009" ); + equal( $two.find( $foo[ 0 ] ).addBack().length, 2, "find preserves the pushStack, see #12009" ); }); test("is(String|undefined)", function() { |