]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner Tests: Fix IE test failures by removing timing dependencies from focus/blur...
authorMike Sherov <mike.sherov@gmail.com>
Mon, 1 Apr 2013 12:59:52 +0000 (08:59 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 17 Apr 2013 19:07:29 +0000 (15:07 -0400)
tests/unit/spinner/spinner_core.js

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