Skip to content
Permalink
Browse files

Add setup function for the event module

  • Loading branch information
markelog committed Sep 30, 2013
1 parent 0a62e22 commit 2c0b9027de841a437baf7b9c85262f196b9cb09e
Showing with 6 additions and 3 deletions.
  1. +6 −3 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;

0 comments on commit 2c0b902

Please sign in to comment.
You can’t perform that action at this time.