Skip to content
Permalink
Browse files

Menu tests: re-order tests.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 7f6ef7f commit 355a1a6f0a47334585f917dbfa6382ba965e39cd
Showing with 16 additions and 16 deletions.
  1. +16 −16 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 );

0 comments on commit 355a1a6

Please sign in to comment.
You can’t perform that action at this time.