Commit 908d88cc authored by Oleg's avatar Oleg

Add setup function for the event module

(cherry picked from the commit 2c0b9027)
parent b2f27632
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);
...@@ -2644,8 +2649,6 @@ test( "Check order of focusin/focusout events", 2, function() { ...@@ -2644,8 +2649,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