Skip to content
Browse files
Pre-focus the element so the browser won't fire focus while we're fak…
…ing it.

At this point the unit test is only testing our ability to fake-fire focusin the right way. These machinations are related to the problem in #6705.
  • Loading branch information
dmethvin committed Nov 14, 2011
1 parent d2815ed commit fa96f4bdeedd5b134ea1923e1147b4282fa4d6fa
Showing 1 changed file with 3 additions and 0 deletions.
@@ -2324,6 +2324,9 @@ test("focusin bubbles", function() {
var input = jQuery( "<input type='text' />" ).prependTo( "body" ),
order = 0;

// focus the element so DOM focus won't fire

jQuery( "body" ).bind( "focusin.focusinBubblesTest", function(){
equal( 1, order++, "focusin on the body second" );

0 comments on commit fa96f4b

Please sign in to comment.