mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Button tests: fix IE7 fail for latest focus tests
This commit is contained in:
parent
93abe02b60
commit
70e013830d
@ -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 } );
|
||||||
|
Loading…
Reference in New Issue
Block a user