github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 857
    • 194
  • Source
  • Commits
  • Network (194)
  • Graphs
  • Tree: 8fa9ed7

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (21)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Tabs: Added tests for select event.
scottgonzalez (author)
Tue Jul 20 17:51:09 -0700 2010
commit  8fa9ed7cbc10d8fb1c37
tree    c5fb4489ea59cc195f12
parent  f99068bb4ff7fc0ceec1
M tests/unit/tabs/tabs_events.js 13 ••••
Txt tests/unit/tabs/tabs_events.js
  • View file @ 8fa9ed7
... ...
@@ -6,7 +6,18 @@
6 6
 module("tabs: events");
7 7
 
8 8
 test('select', function() {
9  
-  ok(false, "missing test - untested code is broken code.");
  9
+  expect(6);
  10
+  el = $('#tabs1').tabs({
  11
+    select: function(event, ui) {
  12
+      ok(true, 'select triggered after initialization');
  13
+      equals(this, el[0], "context of callback");
  14
+      equals(event.type, 'tabsselect', 'event type in callback');
  15
+      equals(ui.tab, el.find('a')[1], 'contain tab as DOM anchor element');
  16
+      equals(ui.panel, el.find('div')[1], 'contain panel as DOM div element');
  17
+      equals(ui.index, 1, 'contain index');
  18
+    }
  19
+  });
  20
+  el.tabs('select', 1);
10 21
 });
11 22
 
12 23
 test('load', function() {

0 notes on commit 8fa9ed7

Please log in to comment.
Blog | Support | Training | Job Board | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文