Add setup function for the event module

(cherry picked from the commit 2c0b9027de)
This commit is contained in:
Oleg 2013-09-30 21:12:58 +04:00
parent b2f27632eb
commit 908d88cc70

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);
@ -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;