aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_events.js
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2011-03-27 17:02:58 -0400
committerDavid Petersen <public@petersendidit.com>2011-03-27 17:02:58 -0400
commit8b0c3618bdebddd98d4c09e77d14c50c4f4d3190 (patch)
treefac0a02d089d9ce25158f14bf5bbde22d9797d0c /tests/unit/tabs/tabs_events.js
parent787efd307aff11ad3c51a72f520c58b8158ae973 (diff)
downloadjquery-ui-8b0c3618bdebddd98d4c09e77d14c50c4f4d3190.tar.gz
jquery-ui-8b0c3618bdebddd98d4c09e77d14c50c4f4d3190.zip
Tabs: Rename select event to beforeActivate. Fixes #7136 Tabs: Rename select event to beforeActivate
Diffstat (limited to 'tests/unit/tabs/tabs_events.js')
-rw-r--r--tests/unit/tabs/tabs_events.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js
index 60affd7ff..4fedde842 100644
--- a/tests/unit/tabs/tabs_events.js
+++ b/tests/unit/tabs/tabs_events.js
@@ -5,15 +5,15 @@
module("tabs: events");
-test('select', function() {
+test('beforeActivate', function() {
expect(7);
var eventObj;
el = $('#tabs1').tabs({
- select: function(event, ui) {
- ok(true, 'select triggered after initialization');
+ beforeActivate: function(event, ui) {
+ ok(true, 'beforeActivate triggered after initialization');
equals(this, el[0], "context of callback");
- equals(event.type, 'tabsselect', 'event type in callback');
+ equals(event.type, 'tabsbeforeactivate', 'event type in callback');
equals(ui.tab, el.find('a')[1], 'contain tab as DOM anchor element');
equals(ui.panel, el.find('div')[1], 'contain panel as DOM div element');
equals(ui.index, 1, 'contain index');
@@ -23,7 +23,7 @@ test('select', function() {
el.tabs('select', 1);
el.find( "li:eq(1) a" ).simulate( "click" );
- equals( evenObj.originalEvent.type, "click", "select triggered by click" );
+ equals( evenObj.originalEvent.type, "click", "beforeActivate triggered by click" );
});
test('beforeload', function() {