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 | |
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')
-rw-r--r-- | test/unit/effects.js | 2 | ||||
-rw-r--r-- | test/unit/event.js | 2 | ||||
-rw-r--r-- | test/unit/queue.js | 2 | ||||
-rw-r--r-- | test/unit/traversing.js | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js index 791e28bcf..e6c416198 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1557,7 +1557,7 @@ asyncTest( "hide, fadeOut and slideUp called on element width height and width = }); asyncTest( "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/event.js b/test/unit/event.js index 97c29ffef..e2aa6f93c 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -43,7 +43,7 @@ test("Handler changes and .trigger() order", function() { path = ""; markup - .find( "*" ).andSelf().on( "click", function( e ) { + .find( "*" ).addBack().on( "click", function( e ) { path += this.nodeName.toLowerCase() + " "; }) .filter( "b" ).on( "click", function( e ) { diff --git a/test/unit/queue.js b/test/unit/queue.js index 9cecad7a5..e19274039 100644 --- a/test/unit/queue.js +++ b/test/unit/queue.js @@ -184,7 +184,7 @@ test("clearQueue() clears the fx queue", function() { }); asyncTest( "fn.promise() - called when fx queue is empty", 3, function() { - var foo = jQuery( "#foo" ).clone().andSelf(), + var foo = jQuery( "#foo" ).clone().addBack(), promised = false; foo.queue( function( next ) { 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() { |