]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs test: Increase delay in load test.
authorScott González <scott.gonzalez@gmail.com>
Wed, 2 Nov 2011 13:35:20 +0000 (09:35 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 2 Nov 2011 13:35:20 +0000 (09:35 -0400)
tests/unit/tabs/tabs_methods.js
ui/jquery.ui.tabs.js

index ec21e2de79059b663adc0af35668790b130d16dc..b62f7bb3a11f7863ef4f99c9ef36398950f0b311 100644 (file)
@@ -180,7 +180,7 @@ asyncTest( "load", function() {
                strictEqual( uiPanel[ 0 ], panel[ 0 ], "panel" );
                equals( uiPanel.find( "p" ).length, 1, "panel html" );
                tabs_state( element, 1, 0, 0, 0, 0 );
-               setTimeout( tabsload1, 1 );
+               setTimeout( tabsload1, 100 );
        });
        element.tabs( "load", 3 );
        tabs_state( element, 1, 0, 0, 0, 0 );
@@ -192,7 +192,7 @@ asyncTest( "load", function() {
                });
                element.one( "tabsload", function() {
                        ok( true, "tabsload invoked" );
-                       setTimeout( tabsload2, 1 );
+                       setTimeout( tabsload2, 100 );
                });
                element.tabs( "option", "active", 3 );
                tabs_state( element, 0, 0, 0, 1, 0 );
index 4127ddf84a9f98b53263d2af390d5a864058ba74..5eaab1aae9e679f4a42de5fd937b2693fd2e3a43 100644 (file)
@@ -561,7 +561,7 @@ $.widget( "ui.tabs", {
                                                if ( jqXHR === self.xhr ) {
                                                        delete self.xhr;
                                                }
-                                       });
+                                       }, 1 );
                                });
                }