mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Add setup function for the event module
(cherry picked from the commit 2c0b9027de
)
This commit is contained in:
parent
b2f27632eb
commit
908d88cc70
@ -1,4 +1,9 @@
|
||||
module("event", { teardown: moduleTeardown });
|
||||
module( "event", {
|
||||
setup: function() {
|
||||
document.body.focus();
|
||||
},
|
||||
teardown: moduleTeardown
|
||||
});
|
||||
|
||||
test("null or undefined handler", function() {
|
||||
expect(2);
|
||||
@ -2644,8 +2649,6 @@ test( "Check order of focusin/focusout events", 2, function() {
|
||||
var focus, blur,
|
||||
input = jQuery( "#name" );
|
||||
|
||||
document.body.focus();
|
||||
|
||||
input.on( "focus", function() {
|
||||
focus = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user