Skip to content

Commit

Permalink
Tests: Change the input in the effects test to a text input. This fix…
Browse files Browse the repository at this point in the history
…es failing tests in IE8 that could not focus the input.
  • Loading branch information
kborchers committed Nov 2, 2011
1 parent 3de7d8b commit 4f9209f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/effects/effects_core.js
Expand Up @@ -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" );
Expand Down

0 comments on commit 4f9209f

Please sign in to comment.