aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-26 20:16:30 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-26 20:16:30 -0400
commit355a1a6f0a47334585f917dbfa6382ba965e39cd (patch)
treef4fbb1640762bbcc2c9256c63b624446d30b8f2d /tests
parent7f6ef7ffad9f8f118f18503dc015d441e47f6d24 (diff)
downloadjquery-ui-355a1a6f0a47334585f917dbfa6382ba965e39cd.tar.gz
jquery-ui-355a1a6f0a47334585f917dbfa6382ba965e39cd.zip
Menu tests: re-order tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/menu/menu_methods.js32
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 );