Skip to content

Commit 2ea57c1

Browse files
committed
Test: Switch leftover andSelf to addBack
1 parent f1913cf commit 2ea57c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/unit/effects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ test( "hide should not leave hidden inline elements visible (#14848)", 2, functi
16871687
});
16881688

16891689
test( "Handle queue:false promises", 10, function() {
1690-
var foo = jQuery( "#foo" ).clone().andSelf(),
1690+
var foo = jQuery( "#foo" ).clone().addBack(),
16911691
step = 1;
16921692

16931693
foo.animate({

test/unit/traversing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test( "find(String) under non-elements", function() {
1010

1111
var j = jQuery("#nonnodes").contents();
1212
equal( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" );
13-
equal( j.find("div").andSelf().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" );
13+
equal( j.find("div").addBack().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" );
1414
});
1515

1616
test( "find(leading combinator)", function() {
@@ -47,7 +47,7 @@ test( "find(node|jQuery object)", function() {
4747
equal( $two.find( $first ).length, 0, "first is in the collection and not within two" );
4848
equal( $two.find( $first ).length, 0, "first is in the collection and not within two(node)" );
4949

50-
equal( $two.find( $foo[ 0 ] ).andSelf().length, 2, "find preserves the pushStack, see #12009" );
50+
equal( $two.find( $foo[ 0 ] ).addBack().length, 2, "find preserves the pushStack, see #12009" );
5151
});
5252

5353
test("is(String|undefined)", function() {

0 commit comments

Comments
 (0)