parent
9bd9ebdd73
commit
3b50eaca2c
4 changed files with 44 additions and 0 deletions
|
@ -1,5 +1,25 @@
|
|||
module("event");
|
||||
|
||||
test("null or undefined handler", function() {
|
||||
expect(2);
|
||||
// Supports Fixes bug #7229
|
||||
try {
|
||||
|
||||
jQuery("#firstp").click(null);
|
||||
|
||||
ok(true, "Passing a null handler will not throw an exception");
|
||||
|
||||
} catch (e) {}
|
||||
|
||||
try {
|
||||
|
||||
jQuery("#firstp").click(undefined);
|
||||
|
||||
ok(true, "Passing an undefined handler will not throw an exception");
|
||||
|
||||
} catch (e) {}
|
||||
});
|
||||
|
||||
test("bind(), with data", function() {
|
||||
expect(3);
|
||||
var handler = function(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue