diff options
author | Oleg <markelog@gmail.com> | 2013-09-30 21:12:58 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2013-09-30 21:12:58 +0400 |
commit | 2c0b9027de841a437baf7b9c85262f196b9cb09e (patch) | |
tree | 822d79528dc90b7a2b61d7e6fb45f69755492586 /test | |
parent | 0a62e22579b67976a7d70002e493ee153d9496e8 (diff) | |
download | jquery-2c0b9027de841a437baf7b9c85262f196b9cb09e.tar.gz jquery-2c0b9027de841a437baf7b9c85262f196b9cb09e.zip |
Add setup function for the event module
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/event.js | 9 |
1 files changed, 6 insertions, 3 deletions
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; |