Selectmenu Tests: use simulate instead of trigger

This commit is contained in:
Felix Nagel 2013-04-29 20:49:06 +02:00
parent 8b6c81e8a6
commit 1fa8c20009

View File

@ -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);