aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/menu/menu_methods.js')
-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 );