From: Oleg Date: Mon, 30 Sep 2013 17:12:58 +0000 (+0400) Subject: Add setup function for the event module X-Git-Tag: 2.1.0-beta2~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c0b9027de841a437baf7b9c85262f196b9cb09e;p=jquery.git Add setup function for the event module --- diff --git a/test/unit/event.js b/test/unit/event.js index ce4536363..11db61d1a 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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;