aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/eventTest.js
blob: b597a252737e722eda2ae3bcd49b488847035d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
module("event");

test("toggle(Function, Function) - add toggle event and fake a few clicks", function() {
	expect(1);
	var count = 0,
		fn1 = function() { count++; },
		fn2 = function() { count--; },
		link = $('#mark');
	link.click().toggle(fn1, fn2).click().click().click().click().click();
	ok( count == 1, "Check for toggle(fn, fn)" );
});