Skip to content
Browse files

Tabs: Added tests for select event.

  • Loading branch information
scottgonzalez committed Jul 21, 2010
1 parent f99068b commit 8fa9ed7cbc10d8fb1c37dde5d78c9041b20c3296
Showing with 12 additions and 1 deletion.
  1. +12 −1 tests/unit/tabs/tabs_events.js
@@ -6,7 +6,18 @@
module("tabs: events");

test('select', function() {
ok(false, "missing test - untested code is broken code.");
el = $('#tabs1').tabs({
select: function(event, ui) {
ok(true, 'select triggered after initialization');
equals(this, el[0], "context of callback");
equals(event.type, 'tabsselect', 'event type in callback');
equals(, 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');
el.tabs('select', 1);

test('load', function() {

0 comments on commit 8fa9ed7

Please sign in to comment.
You can’t perform that action at this time.