mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu Tests: use simulate instead of trigger
This commit is contained in:
parent
8b6c81e8a6
commit
1fa8c20009
@ -23,7 +23,7 @@ test( "change", function () {
|
||||
value = this.element.find( "option" ).first().text();
|
||||
|
||||
button.simulate( "focus" ).simulate( "click" );
|
||||
menu.find( "a" ).first().simulate( "mouseover" ).trigger( "click" );
|
||||
menu.find( "a" ).first().simulate( "mouseover" ).simulate( "click" );
|
||||
});
|
||||
|
||||
|
||||
@ -103,7 +103,7 @@ test( "select", function () {
|
||||
menu = this.element.selectmenu( "menuWidget" ).parent();
|
||||
|
||||
button.simulate( "focus" ).simulate( "click" );
|
||||
menu.find( "a" ).first().simulate( "mouseover" ).trigger( "click" );
|
||||
menu.find( "a" ).first().simulate( "mouseover" ).simulate( "click" );
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user