]> source.dussan.org Git - jquery-ui.git/commitdiff
Button tests: fix IE7 fail for latest focus tests
authorMike Sherov <mike.sherov@gmail.com>
Thu, 22 Nov 2012 00:29:22 +0000 (19:29 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Thu, 22 Nov 2012 00:29:22 +0000 (19:29 -0500)
tests/unit/button/button_events.js

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