@@ -62,7 +62,7 @@ asyncTest( "handle blur", function() {
6262
6363 click ( element , "1" ) ;
6464 setTimeout ( function ( ) {
65- element . blur ( ) ;
65+ element . trigger ( "blur" ) ;
6666 setTimeout ( function ( ) {
6767 start ( ) ;
6868 } , 350 ) ;
@@ -303,7 +303,7 @@ asyncTest( "handle keyboard navigation on menu without scroll and with submenus"
303303 equal ( logOutput ( ) , "keydown,1,2" , "Keydown DOWN" ) ;
304304 setTimeout ( menukeyboard1 ) ;
305305 } ) ;
306- element . focus ( ) ;
306+ element . trigger ( "focus" ) ;
307307
308308 function menukeyboard1 ( ) {
309309 log ( "keydown" , true ) ;
@@ -498,7 +498,7 @@ asyncTest( "handle keyboard navigation on menu with scroll and with submenus", f
498498 equal ( logOutput ( ) , "keydown,1,2" , "Keydown DOWN" ) ;
499499 setTimeout ( menukeyboard1 ) ;
500500 } ) ;
501- element . focus ( ) ;
501+ element . trigger ( "focus" ) ;
502502
503503 function menukeyboard1 ( ) {
504504 log ( "keydown" , true ) ;
@@ -593,7 +593,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with disabled ite
593593 equal ( logOutput ( ) , "keydown,1" , "Keydown focus but not select disabled item" ) ;
594594 setTimeout ( menukeyboard1 , 50 ) ;
595595 } ) ;
596- element . focus ( ) ;
596+ element . trigger ( "focus" ) ;
597597
598598 function menukeyboard1 ( ) {
599599 log ( "keydown" , true ) ;
@@ -645,7 +645,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with dividers and
645645 equal ( logOutput ( ) , "keydown,2,Ada" , "Keydown skips initial group label" ) ;
646646 setTimeout ( menukeyboard1 , 50 ) ;
647647 } ) ;
648- element . focus ( ) ;
648+ element . trigger ( "focus" ) ;
649649
650650 function menukeyboard1 ( ) {
651651 log ( "keydown" , true ) ;
0 commit comments