diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-04-04 11:22:32 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-04 11:22:32 -0400 |
commit | 632e6c76185664f1831c2f008e40f9057ef91bd0 (patch) | |
tree | 63524bed40da4028ae32fb249912cc2041ced380 /tests/unit/tabs/tabs_deprecated.html | |
parent | fdedf1616d03b07c84045a3fd57d3cff073c6148 (diff) | |
download | jquery-ui-632e6c76185664f1831c2f008e40f9057ef91bd0.tar.gz jquery-ui-632e6c76185664f1831c2f008e40f9057ef91bd0.zip |
Tabs: Pass appropriate data for beforeActivate event. Fixes #7136 - Tabs: Rename select event to beforeActivate.
Diffstat (limited to 'tests/unit/tabs/tabs_deprecated.html')
-rw-r--r-- | tests/unit/tabs/tabs_deprecated.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.html b/tests/unit/tabs/tabs_deprecated.html index f886a9b7b..b50cebebc 100644 --- a/tests/unit/tabs/tabs_deprecated.html +++ b/tests/unit/tabs/tabs_deprecated.html @@ -26,6 +26,15 @@ <script src="tabs_deprecated.js"></script> <script> + function tabs_state( tabs ) { + var expected = $.makeArray( arguments ).slice( 1 ); + var actual = tabs.find( ".ui-tabs-nav li" ).map(function() { + return $( this ).hasClass( "ui-state-active" ) ? 1 : 0; + }).get(); + same( actual, expected ); + } + </script> + <script> // disable this stale testsuite for testswarm only var url = window.location.search; url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) ); |