diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-04-04 17:06:13 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-04 17:06:13 -0400 |
commit | 995518c10fa03703754af3fe272fb1a7021a285b (patch) | |
tree | 75c8bac14e2b1aee0bfcbf0cdbde59ada23a0462 /tests/unit/tabs/tabs_events.js | |
parent | 1fc91f90d0dea2bbc6c84bfa994e21d120391782 (diff) | |
download | jquery-ui-995518c10fa03703754af3fe272fb1a7021a285b.tar.gz jquery-ui-995518c10fa03703754af3fe272fb1a7021a285b.zip |
Tabs: cleanup.
Diffstat (limited to 'tests/unit/tabs/tabs_events.js')
-rw-r--r-- | tests/unit/tabs/tabs_events.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js index c578e5db7..9c9fe0cd9 100644 --- a/tests/unit/tabs/tabs_events.js +++ b/tests/unit/tabs/tabs_events.js @@ -139,14 +139,14 @@ test( "activate", function() { element.tabs( "option", "active", 1 ); }); -test('beforeload', function() { +test( "beforeLoad", function() { expect( 5 ); - el = $('#tabs2'); + el = $( "#tabs2" ); el.tabs({ active: 2, - beforeload: function( event, ui ) { + beforeLoad: function( event, ui ) { ok( $.isFunction( ui.jqXHR.promise ), 'contain jqXHR object'); equals( ui.settings.url, "data/test.html", 'contain ajax settings url'); equals( ui.tab, el.find('a')[ 2 ], 'contain tab as DOM anchor element'); @@ -155,7 +155,6 @@ test('beforeload', function() { event.preventDefault(); } }); - }); test('load', function() { |