diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:16:30 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-26 20:16:30 -0400 |
commit | 355a1a6f0a47334585f917dbfa6382ba965e39cd (patch) | |
tree | f4fbb1640762bbcc2c9256c63b624446d30b8f2d | |
parent | 7f6ef7ffad9f8f118f18503dc015d441e47f6d24 (diff) | |
download | jquery-ui-355a1a6f0a47334585f917dbfa6382ba965e39cd.tar.gz jquery-ui-355a1a6f0a47334585f917dbfa6382ba965e39cd.zip |
Menu tests: re-order tests.
-rw-r--r-- | tests/unit/menu/menu_methods.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js index 510ddb1d7..bfe974b06 100644 --- a/tests/unit/menu/menu_methods.js +++ b/tests/unit/menu/menu_methods.js @@ -10,6 +10,22 @@ module( "menu: methods", { } }); +test( "destroy", function() { + expect( 4 ); + domEqual( "#menu1", function() { + $( "#menu1" ).menu().menu( "destroy" ); + }); + domEqual( "#menu2", function() { + $( "#menu2" ).menu().menu( "destroy" ); + }); + domEqual( "#menu5", function() { + $( "#menu5").menu().menu( "destroy" ); + }); + domEqual( "#menu6", function() { + $( "#menu6" ).menu().menu( "destroy" ); + }); +}); + test( "enable/disable", function() { expect( 3 ); var element = $( "#menu1" ).menu({ @@ -68,20 +84,4 @@ test( "refresh", function() { // TODO: test select method -test( "destroy", function() { - expect( 4 ); - domEqual( "#menu1", function() { - $( "#menu1" ).menu().menu( "destroy" ); - }); - domEqual( "#menu2", function() { - $( "#menu2" ).menu().menu( "destroy" ); - }); - domEqual( "#menu5", function() { - $( "#menu5").menu().menu( "destroy" ); - }); - domEqual( "#menu6", function() { - $( "#menu6" ).menu().menu( "destroy" ); - }); -}); - })( jQuery ); |