aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_events.js
blob: a03bec3f6405216f318b60468b955afc411e7802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);