aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js4
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() {