aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-09-30 21:12:58 +0400
committerOleg <markelog@gmail.com>2013-09-30 21:17:10 +0400
commit908d88cc70a2328524c3dee8e2956069a16d048a (patch)
tree124422ccce41ec52dc733017fc750f72be087b2e /test/unit/event.js
parentb2f27632ebaa0f975eb70d531925129cee4014b9 (diff)
downloadjquery-908d88cc70a2328524c3dee8e2956069a16d048a.tar.gz
jquery-908d88cc70a2328524c3dee8e2956069a16d048a.zip
Add setup function for the event module
(cherry picked from the commit 2c0b9027de841a437baf7b9c85262f196b9cb09e)
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index db4f9d0a8..1cc5501c6 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);
@@ -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;