From 1fa8c2000994cabb315aff3a0941cbbfb1f562f8 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 29 Apr 2013 20:49:06 +0200 Subject: [PATCH] Selectmenu Tests: use simulate instead of trigger --- tests/unit/selectmenu/selectmenu_events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js index 0e704fd90..669cde2a2 100644 --- a/tests/unit/selectmenu/selectmenu_events.js +++ b/tests/unit/selectmenu/selectmenu_events.js @@ -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);