diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-05-15 23:14:13 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-05-15 23:14:13 -0400 |
commit | f76518e3931f7f2522a38bf37a7df24a620858fc (patch) | |
tree | 2476252b72d53819e3b4f536bad0daadf80fcf77 /test/unit/traversing.js | |
parent | ca48d490407b198e022b0d0294a7493602155f74 (diff) | |
download | jquery-f76518e3931f7f2522a38bf37a7df24a620858fc.tar.gz jquery-f76518e3931f7f2522a38bf37a7df24a620858fc.zip |
Rename .andSelf to .addBack, deprecate .andSelf #9800
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 39319e4d7..3400ffea8 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -402,12 +402,12 @@ test("has(Arrayish)", function() { deepEqual( simple.get(), q("qunit-fixture"), "Only adds elements once" ); }); -test("andSelf()", function() { +test("addBack()", function() { expect(4); - deepEqual( jQuery("#en").siblings().andSelf().get(), q("sndp", "en", "sap"), "Check for siblings and self" ); - deepEqual( jQuery("#foo").children().andSelf().get(), q("foo", "sndp", "en", "sap"), "Check for children and self" ); - deepEqual( jQuery("#sndp, #en").parent().andSelf().get(), q("foo","sndp","en"), "Check for parent and self" ); - deepEqual( jQuery("#groups").parents("p, div").andSelf().get(), q("qunit-fixture", "ap", "groups"), "Check for parents and self" ); + deepEqual( jQuery("#en").siblings().addBack().get(), q("sndp", "en", "sap"), "Check for siblings and self" ); + deepEqual( jQuery("#foo").children().addBack().get(), q("foo", "sndp", "en", "sap"), "Check for children and self" ); + deepEqual( jQuery("#sndp, #en").parent().addBack().get(), q("foo","sndp","en"), "Check for parent and self" ); + deepEqual( jQuery("#groups").parents("p, div").addBack().get(), q("qunit-fixture", "ap", "groups"), "Check for parents and self" ); }); test("siblings([String])", function() { |