Commit 2c0b9027 authored by Oleg's avatar Oleg

Add setup function for the event module

parent 0a62e225
module("event", { teardown: moduleTeardown }); module( "event", {
setup: function() {
document.body.focus();
},
teardown: moduleTeardown
});
test("null or undefined handler", function() { test("null or undefined handler", function() {
expect(2); expect(2);
...@@ -2571,8 +2576,6 @@ test( "Check order of focusin/focusout events", 2, function() { ...@@ -2571,8 +2576,6 @@ test( "Check order of focusin/focusout events", 2, function() {
var focus, blur, var focus, blur,
input = jQuery( "#name" ); input = jQuery( "#name" );
document.body.focus();
input.on( "focus", function() { input.on( "focus", function() {
focus = true; focus = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment