aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/selectmenu_events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r--tests/unit/selectmenu/selectmenu_events.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js
index 572f502e8..353780ee5 100644
--- a/tests/unit/selectmenu/selectmenu_events.js
+++ b/tests/unit/selectmenu/selectmenu_events.js
@@ -29,8 +29,8 @@ asyncTest( "change", function () {
button.simulate( "focus" );
setTimeout(function() {
- button.simulate( "click" );
- menu.find( "a" ).eq( optionIndex ).simulate( "mouseover" ).simulate( "click" );
+ button.trigger( "click" );
+ menu.find( "a" ).eq( optionIndex ).simulate( "mouseover" ).trigger( "click" );
start();
}, 1 );
});
@@ -49,7 +49,7 @@ test( "close", function () {
this.element.selectmenu( "open" ).selectmenu( "close" );
this.element.selectmenu( "open" );
- $( "body" ).simulate( "click" );
+ $( "body" ).trigger( "click" );
});
@@ -78,7 +78,7 @@ asyncTest( "focus", function () {
setTimeout(function() {
button.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
- button.simulate( "click" );
+ button.trigger( "click" );
links = menu.find( "li.ui-menu-item a" );
optionIndex = 0;
links.eq( optionIndex ).simulate( "mouseover" );
@@ -126,8 +126,8 @@ asyncTest( "select", function () {
button.simulate( "focus" );
setTimeout(function() {
- button.simulate( "click" );
- menu.find( "a" ).eq( optionIndex ).simulate( "mouseover" ).simulate( "click" );
+ button.trigger( "click" );
+ menu.find( "a" ).eq( optionIndex ).simulate( "mouseover" ).trigger( "click" );
start();
}, 1 );
});