]> source.dussan.org Git - jquery.git/commitdiff
Test: Switch leftover andSelf to addBack
authorMichał Gołębiowski <m.goleb@gmail.com>
Thu, 30 Oct 2014 13:19:03 +0000 (14:19 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Thu, 30 Oct 2014 13:19:03 +0000 (14:19 +0100)
test/unit/effects.js
test/unit/traversing.js

index deb3a0331a87dac697dd06e4b35c8c03ae1729d7..7a2d323da0e9dfee5cb32072006820f33604530c 100644 (file)
@@ -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({
index 09275c0d6d29ad82acc33c9fb644dea65250023e..55e89324ed1f23b1f54744c80235cbea72516d65 100644 (file)
@@ -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() {