]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner Tests: Fix IE test failures by accounting for the async nature of focus/blur.
authorMike Sherov <mike.sherov@gmail.com>
Sun, 31 Mar 2013 16:55:57 +0000 (12:55 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Sun, 31 Mar 2013 16:55:57 +0000 (12:55 -0400)
tests/unit/spinner/spinner_core.js

index bea5f91222c0d0ba93d54b83c670c588aa3d4760..f9bd7c2e411f6df87fb5d56d75be125ec64f1753 100644 (file)
@@ -94,6 +94,9 @@ asyncTest( "blur input while spinning with UP", function() {
        function step2() {
                value = element.val();
                ok( value > 11, "repeating while key is down" );
+               setTimeout( function() {
+                       value = element.val();
+               });
                element[0].blur();
                setTimeout( step3, 250 );
        }