Testsuite 2.0
This commit is contained in:
parent
797ccbaf31
commit
7cc550727c
12 changed files with 930 additions and 746 deletions
11
src/event/eventTest.js
Normal file
11
src/event/eventTest.js
Normal 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)" );
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue