aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_events.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-03 13:37:54 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-03 13:37:54 +0000
commit037f5d5ce193556ac977217056767e00a77e5c76 (patch)
tree5e06b1d43f71516579f875f8ec1595fccd0edb27 /tests/unit/tabs/tabs_events.js
parent497c246104223f5f3e34b45d272760f81a390d90 (diff)
downloadjquery-ui-037f5d5ce193556ac977217056767e00a77e5c76.tar.gz
jquery-ui-037f5d5ce193556ac977217056767e00a77e5c76.zip
tabs unit tests: split tests into individual files, added some missing tests
Diffstat (limited to 'tests/unit/tabs/tabs_events.js')
-rw-r--r--tests/unit/tabs/tabs_events.js37
1 files changed, 36 insertions, 1 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js
index 3c3ea8d86..d49a34782 100644
--- a/tests/unit/tabs/tabs_events.js
+++ b/tests/unit/tabs/tabs_events.js
@@ -5,7 +5,42 @@
module("tabs: events");
-test("testname", function() {
+test('select', function() {
+ ok(false, "missing test - untested code is broken code.");
+});
+
+test('load', function() {
+ ok(false, "missing test - untested code is broken code.");
+});
+
+test('show', function() {
+ expect(3);
+
+ var uiObj;
+ el = $('#tabs1').tabs({
+ show: function(event, ui) {
+ uiObj = ui;
+ }
+ });
+ equals(uiObj.tab, $('#tabs1 a')[0], 'should have tab as DOM anchor element');
+ equals(uiObj.panel, $('#tabs1 div')[0], 'should have panel as DOM div element');
+ equals(uiObj.index, 0, ' should have index');
+
+});
+
+test('add', function() {
+ ok(false, "missing test - untested code is broken code.");
+});
+
+test('remove', function() {
+ ok(false, "missing test - untested code is broken code.");
+});
+
+test('enable', function() {
+ ok(false, "missing test - untested code is broken code.");
+});
+
+test('disable', function() {
ok(false, "missing test - untested code is broken code.");
});