diff options
author | dominiquevincent <dominique.vincent@toitl.com> | 2010-05-06 17:10:52 +0200 |
---|---|---|
committer | dominiquevincent <dominique.vincent@toitl.com> | 2010-05-06 17:10:52 +0200 |
commit | c821aa680c617412cc9e9c74a4030722f6302379 (patch) | |
tree | bfacabec19361ccf8f8cbbd7efb350b500d10237 /tests/unit/menu/menu_events.js | |
parent | c3d32496565bb29ba5e0dc3eaf5f47850af2a6d4 (diff) | |
download | jquery-ui-c821aa680c617412cc9e9c74a4030722f6302379.tar.gz jquery-ui-c821aa680c617412cc9e9c74a4030722f6302379.zip |
Menu:the first set of unit test files.
Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
Diffstat (limited to 'tests/unit/menu/menu_events.js')
-rw-r--r-- | tests/unit/menu/menu_events.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/unit/menu/menu_events.js b/tests/unit/menu/menu_events.js new file mode 100644 index 000000000..a03bec3f6 --- /dev/null +++ b/tests/unit/menu/menu_events.js @@ -0,0 +1,24 @@ +/* + * menu_events.js + */ +(function($) { + +module("menu: events"); + +test("handle click on menu", function() { + expect(1); + var ac = $('#menu1').menu({ + select: function(event, ui) { + log(); + } + }); + log("click",true); + clickMenu($('#menu1'),"1"); + log("afterclick"); + clickMenu( ac,"2"); + clickMenu($('#menu1'),"3"); + clickMenu( ac,"1"); + equals( $("#log").html(), "1,3,2,afterclick,1,click,", "Click order not valid."); +}); + +})(jQuery); |