File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,23 @@ module( "core - jQuery extensions" );
4
4
5
5
TestHelpers . testJshint ( "core" ) ;
6
6
7
- test ( "focus - original functionality" , function ( ) {
7
+ asyncTest ( "focus - original functionality" , function ( ) {
8
8
expect ( 1 ) ;
9
9
$ ( "#inputTabindex0" )
10
- . focus ( function ( ) {
10
+ . one ( "focus" , function ( ) {
11
11
ok ( true , "event triggered" ) ;
12
+ start ( ) ;
12
13
} )
13
14
. focus ( ) ;
14
15
} ) ;
15
16
16
17
asyncTest ( "focus" , function ( ) {
17
18
expect ( 2 ) ;
18
19
$ ( "#inputTabindex0" )
19
- . focus ( function ( ) {
20
+ . one ( "focus" , function ( ) {
20
21
ok ( true , "event triggered" ) ;
21
22
} )
22
23
. focus ( 500 , function ( ) {
23
- // prevent double focus event in IE
24
- $ ( this ) . unbind ( "focus" ) ;
25
24
ok ( true , "callback triggered" ) ;
26
25
start ( ) ;
27
26
} ) ;
You can’t perform that action at this time.
0 commit comments