File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ $.each([
58
58
equals ( button . text ( ) , selected . next ( "option" ) . text ( ) , "after keydown button text" ) ;
59
59
60
60
link . simulate ( "click" ) ;
61
- menu . find ( "a" ) . last ( ) . simulate ( "mouseover" ) . simulate ( "click" ) ;
61
+ menu . find ( "a" ) . last ( ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
62
62
equals ( element . find ( "option:selected" ) . val ( ) , element . find ( "option" ) . last ( ) . val ( ) , "after click original select state" ) ;
63
63
equals ( button . text ( ) , element . find ( "option" ) . last ( ) . text ( ) , "after click button text" ) ;
64
64
} ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ test("change", function () {
25
25
value = this . element . find ( "option" ) . first ( ) . text ( ) ;
26
26
27
27
button . find ( "a" ) . simulate ( "click" ) ;
28
- menu . find ( "a" ) . first ( ) . simulate ( "mouseover" ) . simulate ( "click" ) ;
28
+ menu . find ( "a" ) . first ( ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
29
29
} ) ;
30
30
31
31
@@ -102,7 +102,7 @@ test("select", function () {
102
102
menu = widget . filter ( ".ui-selectmenu-menu" ) ;
103
103
104
104
button . find ( "a" ) . simulate ( "click" ) ;
105
- menu . find ( "a" ) . first ( ) . simulate ( "mouseover" ) . simulate ( "click" ) ;
105
+ menu . find ( "a" ) . first ( ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
106
106
} ) ;
107
107
108
108
} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments