@@ -29,8 +29,8 @@ asyncTest( "change", function () {
29
29
button . simulate ( "focus" ) ;
30
30
31
31
setTimeout ( function ( ) {
32
- button . simulate ( "click" ) ;
33
- menu . find ( "a" ) . eq ( optionIndex ) . simulate ( "mouseover" ) . simulate ( "click" ) ;
32
+ button . trigger ( "click" ) ;
33
+ menu . find ( "a" ) . eq ( optionIndex ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
34
34
start ( ) ;
35
35
} , 1 ) ;
36
36
} ) ;
@@ -49,7 +49,7 @@ test( "close", function () {
49
49
this . element . selectmenu ( "open" ) . selectmenu ( "close" ) ;
50
50
51
51
this . element . selectmenu ( "open" ) ;
52
- $ ( "body" ) . simulate ( "click" ) ;
52
+ $ ( "body" ) . trigger ( "click" ) ;
53
53
} ) ;
54
54
55
55
@@ -78,7 +78,7 @@ asyncTest( "focus", function () {
78
78
setTimeout ( function ( ) {
79
79
button . simulate ( "keydown" , { keyCode : $ . ui . keyCode . DOWN } ) ;
80
80
81
- button . simulate ( "click" ) ;
81
+ button . trigger ( "click" ) ;
82
82
links = menu . find ( "li.ui-menu-item a" ) ;
83
83
optionIndex = 0 ;
84
84
links . eq ( optionIndex ) . simulate ( "mouseover" ) ;
@@ -126,8 +126,8 @@ asyncTest( "select", function () {
126
126
button . simulate ( "focus" ) ;
127
127
128
128
setTimeout ( function ( ) {
129
- button . simulate ( "click" ) ;
130
- menu . find ( "a" ) . eq ( optionIndex ) . simulate ( "mouseover" ) . simulate ( "click" ) ;
129
+ button . trigger ( "click" ) ;
130
+ menu . find ( "a" ) . eq ( optionIndex ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
131
131
start ( ) ;
132
132
} , 1 ) ;
133
133
} ) ;
0 commit comments