mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Add setup function for the event module
This commit is contained in:
parent
0a62e22579
commit
2c0b9027de
@ -1,4 +1,9 @@
|
|||||||
module("event", { teardown: moduleTeardown });
|
module( "event", {
|
||||||
|
setup: function() {
|
||||||
|
document.body.focus();
|
||||||
|
},
|
||||||
|
teardown: moduleTeardown
|
||||||
|
});
|
||||||
|
|
||||||
test("null or undefined handler", function() {
|
test("null or undefined handler", function() {
|
||||||
expect(2);
|
expect(2);
|
||||||
@ -2571,8 +2576,6 @@ test( "Check order of focusin/focusout events", 2, function() {
|
|||||||
var focus, blur,
|
var focus, blur,
|
||||||
input = jQuery( "#name" );
|
input = jQuery( "#name" );
|
||||||
|
|
||||||
document.body.focus();
|
|
||||||
|
|
||||||
input.on( "focus", function() {
|
input.on( "focus", function() {
|
||||||
focus = true;
|
focus = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user