aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-10-30 14:19:03 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-10-30 14:19:03 +0100
commit2ea57c1002c877c2771955932bff053c47831779 (patch)
tree596acc8dc4c5c49bb3c78418c3ff988183f7ddff
parentf1913cf0316edbab77a081ae9c2ee218a61ce5a7 (diff)
downloadjquery-2ea57c1002c877c2771955932bff053c47831779.tar.gz
jquery-2ea57c1002c877c2771955932bff053c47831779.zip
Test: Switch leftover andSelf to addBack
-rw-r--r--test/unit/effects.js2
-rw-r--r--test/unit/traversing.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index deb3a0331..7a2d323da 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -1687,7 +1687,7 @@ test( "hide should not leave hidden inline elements visible (#14848)", 2, functi
});
test( "Handle queue:false promises", 10, function() {
- var foo = jQuery( "#foo" ).clone().andSelf(),
+ var foo = jQuery( "#foo" ).clone().addBack(),
step = 1;
foo.animate({
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 09275c0d6..55e89324e 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() {
@@ -47,7 +47,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() {