Add setup function for the event module

This commit is contained in:
Oleg 2013-09-30 21:12:58 +04:00
parent 0a62e22579
commit 2c0b9027de

View File

@ -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);
@ -2571,8 +2576,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;