Tests: Change the input in the effects test to a text input. This fixes failing tests in IE8 that could not focus the input.

This commit is contained in:
kborchers 2011-11-02 12:22:58 -05:00
parent 3de7d8b68c
commit 4f9209feb0

View File

@ -34,7 +34,7 @@ test( "Immediate Return Conditions", function() {
test( "createWrapper and removeWrapper retain focused elements (#7595)", function() {
expect( 2 );
var test = $( "div.hidden" ).show(),
input = $( "<input>" ).appendTo( test ).focus();
input = $( "<input type='text'>" ).appendTo( test ).focus();
$.effects.createWrapper( test );
equal( document.activeElement, input[ 0 ], "Active element is still input after createWrapper" );