asyncTest( "change", function () {
expect( 5 );
- var that = this,
- optionIndex = 1,
+ var optionIndex = 1,
button, menu, options;
this.element.selectmenu({
expect( 4 );
this.element.selectmenu({
- close: function ( event, ui ) {
+ close: function ( event ) {
ok( event, "close event fired on close" );
equal( event.type, "selectmenuclose", "event type set to selectmenuclose" );
}
}
});
- button = this.element.selectmenu( "widget" ),
+ button = this.element.selectmenu( "widget" );
menu = this.element.selectmenu( "menuWidget" );
- button.simulate( "focus" )
+ button.simulate( "focus" );
setTimeout(function() {
button.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
expect( 2 );
this.element.selectmenu({
- open: function ( event, ui ) {
+ open: function ( event ) {
ok( event, "open event fired on open" );
equal( event.type, "selectmenuopen", "event type set to selectmenuopen" );
}
setTimeout(function() {
equal( element.find( "option:selected" ).text(), button.text(), "button text after focus" );
- element[ 0 ].selectedIndex = 0
+ element[ 0 ].selectedIndex = 0;
element.selectmenu( "refresh" );
equal( element.find( "option:selected" ).text(), button.text(), "button text after changing selected option" );