mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 23:45:06 -05:00
Add setup function for the event module
(cherry picked from the commit 2c0b9027de)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user