diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 11:06:11 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-20 11:06:11 -0400 |
commit | 308b55e50ca781ad9db08a252f313ee2e8e2f257 (patch) | |
tree | b287b6936d45efdfe067d2bdf4c732b13a1726bd /tests/unit/menu/menu_methods.js | |
parent | 2cf9948cadf45a24c591d6f7232f2470b4d9743e (diff) | |
parent | 33df9b788d3f60459c43acbfefdfeef8a07ce632 (diff) | |
download | jquery-ui-308b55e50ca781ad9db08a252f313ee2e8e2f257.tar.gz jquery-ui-308b55e50ca781ad9db08a252f313ee2e8e2f257.zip |
Merge branch 'master' into position-notification
Diffstat (limited to 'tests/unit/menu/menu_methods.js')
-rw-r--r-- | tests/unit/menu/menu_methods.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js index 200ea4427..6ad7bc134 100644 --- a/tests/unit/menu/menu_methods.js +++ b/tests/unit/menu/menu_methods.js @@ -3,25 +3,28 @@ */ (function($) { +var log = TestHelpers.menu.log, + click = TestHelpers.menu.click; + module("menu: methods"); test( "enable/disable", function() { expect( 3 ); var menu = $( "#menu1" ).menu({ select: function(event, ui) { - menu_log(); + log(); } }); menu.menu("disable"); ok(menu.is(".ui-state-disabled"),"Missing ui-state-disabled class"); - menu_log("click",true); - menu_click(menu,"1"); - menu_log("afterclick"); + log("click",true); + click(menu,"1"); + log("afterclick"); menu.menu("enable"); ok(menu.not(".ui-state-disabled"),"Has ui-state-disabled class"); - menu_log("click"); - menu_click(menu,"1"); - menu_log("afterclick"); + log("click"); + click(menu,"1"); + log("afterclick"); equal( $("#log").html(), "afterclick,1,click,afterclick,click,", "Click order not valid."); }); |