Button tests: fix IE7 fail for latest focus tests

This commit is contained in:
Mike Sherov 2012-11-21 19:29:22 -05:00
parent 93abe02b60
commit 70e013830d

View File

@ -17,7 +17,7 @@ test( "when button loses focus, ensure active state is removed (#8559)", functio
expect( 1 ); expect( 1 );
$("#button").button().keypress( function() { $("#button").button().keypress( function() {
$("#button").blur( function() { $("#button").one( "blur", function() {
ok( !$("#button").is(".ui-state-active"), "button loses active state appropriately" ); ok( !$("#button").is(".ui-state-active"), "button loses active state appropriately" );
}).blur(); }).blur();
}).focus().simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ).simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } ); }).focus().simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ).simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } );