diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-12-14 11:13:46 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-12-14 11:13:50 -0500 |
commit | 8ec7a1b69ffd86edbef06e30ca4368600531e649 (patch) | |
tree | f1141afd8ad47e88261338907aadb35a0f1b9f18 /tests | |
parent | 80e46c93a84c8720cbd4aa206c46e4ac2a2d84f7 (diff) | |
download | jquery-ui-8ec7a1b69ffd86edbef06e30ca4368600531e649.tar.gz jquery-ui-8ec7a1b69ffd86edbef06e30ca4368600531e649.zip |
All: Use .addBack() instead of .andSelf().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/button/button_core.js | 2 | ||||
-rw-r--r-- | tests/unit/menu/menu_methods.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/button/button_core.js b/tests/unit/button/button_core.js index 6d0bbbe88..dbc079818 100644 --- a/tests/unit/button/button_core.js +++ b/tests/unit/button/button_core.js @@ -138,7 +138,7 @@ test( "#7092 - button creation that requires a matching label does not find labe test( "#5946 - buttonset should ignore buttons that are not :visible", function() { expect( 2 ); - $( "#radio01" ).next().andSelf().hide(); + $( "#radio01" ).next().addBack().hide(); var set = $( "#radio0" ).buttonset({ items: "input[type=radio]:visible" }); ok( set.find( "label:eq(0)" ).is( ":not(.ui-button):not(.ui-corner-left)" ) ); ok( set.find( "label:eq(1)" ).is( ".ui-button.ui-corner-left" ) ); diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js index a7e78ea69..c51d123c2 100644 --- a/tests/unit/menu/menu_methods.js +++ b/tests/unit/menu/menu_methods.js @@ -64,7 +64,7 @@ test( "refresh submenu", function() { expect( 2 ); var element = $( "#menu2" ).menu(); equal( element.find( "ul:first .ui-menu-item" ).length, 3 ); - element.find( "ul" ).andSelf().append( "<li><a href=\"#\">New Item</a></li>" ); + element.find( "ul" ).addBack().append( "<li><a href=\"#\">New Item</a></li>" ); element.menu("refresh"); equal( element.find( "ul:first .ui-menu-item" ).length, 4 ); }); |