]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu Tests: use simulate instead of trigger
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 18:49:06 +0000 (20:49 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 18:49:06 +0000 (20:49 +0200)
tests/unit/selectmenu/selectmenu_events.js

index 0e704fd90be5897a55e8913197d2429657c02546..669cde2a223118dfe93287c297dfdd747f0ca0f1 100644 (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);