]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu tests: re-order tests.
authorScott González <scott.gonzalez@gmail.com>
Mon, 27 Aug 2012 00:16:30 +0000 (20:16 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 27 Aug 2012 00:16:30 +0000 (20:16 -0400)
tests/unit/menu/menu_methods.js

index 510ddb1d7905300753874341cc340104b81708b2..bfe974b06bbe0c36b91d8db8c7dc8ffca47cab08 100644 (file)
@@ -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 );