Testsuite 2.0

This commit is contained in:
Jörn Zaefferer 2006-11-18 13:37:01 +00:00
parent 797ccbaf31
commit 7cc550727c
12 changed files with 930 additions and 746 deletions

11
src/event/eventTest.js Normal file
View file

@ -0,0 +1,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)" );
});