aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-09 16:04:33 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-09 16:55:31 -0400
commit9ea6db634f392b5432e03f893cd48a9c2e15cbb5 (patch)
tree54d34a5a03a3f992dfd4d20847f73c69a83fa212 /tests/unit/tabs
parent0adeb9b0e1b2883eb008917333effe12ad20a64d (diff)
downloadjquery-ui-9ea6db634f392b5432e03f893cd48a9c2e15cbb5.tar.gz
jquery-ui-9ea6db634f392b5432e03f893cd48a9c2e15cbb5.zip
Tabs: Only trigger tabsload on success.
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs_deprecated.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js
index 49e89b7a0..a9f1f032f 100644
--- a/tests/unit/tabs/tabs_deprecated.js
+++ b/tests/unit/tabs/tabs_deprecated.js
@@ -156,8 +156,11 @@ asyncTest( "spinner", function() {
equals( element.find( ".ui-tabs-nav li:eq(2) em" ).length, 1, "beforeload" );
});
element.one( "tabsload", function( event, ui ) {
- equals( element.find( ".ui-tabs-nav li:eq(2) em" ).length, 0, "load" );
- start();
+ // wait until after the load finishes before checking for the spinner to be removed
+ setTimeout(function() {
+ equals( element.find( ".ui-tabs-nav li:eq(2) em" ).length, 0, "load" );
+ start();
+ }, 1 );
});
element.tabs( "option", "active", 2 );
});