aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_events.js
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-01-22 11:26:41 -0600
committerkborchers <kris.borchers@gmail.com>2012-01-22 11:26:41 -0600
commit4f15e66f5373170caf307237b9a8b2c505ae3dbf (patch)
tree681877516d8766de3d9210c9ced9a08d3e9c20e6 /tests/unit/menu/menu_events.js
parent8c5c6e0a32a1e87cab575cbb265873fccbd416df (diff)
downloadjquery-ui-4f15e66f5373170caf307237b9a8b2c505ae3dbf.tar.gz
jquery-ui-4f15e66f5373170caf307237b9a8b2c505ae3dbf.zip
Menu: Added unit tests for the enable, disable and refresh methods as well as the disabled option. Cleaned up some variable names in unit tests.
Diffstat (limited to 'tests/unit/menu/menu_events.js')
-rw-r--r--tests/unit/menu/menu_events.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/menu/menu_events.js b/tests/unit/menu/menu_events.js
index 9e68e0c67..8df43fa21 100644
--- a/tests/unit/menu/menu_events.js
+++ b/tests/unit/menu/menu_events.js
@@ -7,7 +7,7 @@ module("menu: events");
test("handle click on menu", function() {
expect(1);
- var ac = $('#menu1').menu({
+ var menu = $('#menu1').menu({
select: function(event, ui) {
menu_log();
}
@@ -15,15 +15,15 @@ test("handle click on menu", function() {
menu_log("click",true);
menu_click($('#menu1'),"1");
menu_log("afterclick");
- menu_click( ac,"2");
+ menu_click( menu,"2");
menu_click($('#menu1'),"3");
- menu_click( ac,"1");
+ menu_click( menu,"1");
equals( $("#log").html(), "1,3,2,afterclick,1,click,", "Click order not valid.");
});
test("handle click on custom item menu", function() {
expect(1);
- var ac = $('#menu5').menu({
+ var menu = $('#menu5').menu({
select: function(event, ui) {
menu_log();
},
@@ -32,9 +32,9 @@ test("handle click on custom item menu", function() {
menu_log("click",true);
menu_click($('#menu5'),"1");
menu_log("afterclick");
- menu_click( ac,"2");
+ menu_click( menu,"2");
menu_click($('#menu5'),"3");
- menu_click( ac,"1");
+ menu_click( menu,"1");
equals( $("#log").html(), "1,3,2,afterclick,1,click,", "Click order not valid.");
});