aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2009-02-25 22:09:45 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2009-02-25 22:09:45 +0000
commit53aad38b6694d8ed9f756596989c06a0d24e415a (patch)
tree4791df399e546021d062689fc5aadf0835f0fa10 /tests/unit/tabs
parent48e551ee0cec83b040b2b5abbc1c99b70e15e126 (diff)
downloadjquery-ui-53aad38b6694d8ed9f756596989c06a0d24e415a.tar.gz
jquery-ui-53aad38b6694d8ed9f756596989c06a0d24e415a.zip
Tabs: refactored so that it's using queue, fixes #4060
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs_events.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js
index d49a34782..4acf15225 100644
--- a/tests/unit/tabs/tabs_events.js
+++ b/tests/unit/tabs/tabs_events.js
@@ -14,7 +14,7 @@ test('load', function() {
});
test('show', function() {
- expect(3);
+ expect(4);
var uiObj;
el = $('#tabs1').tabs({
@@ -22,9 +22,10 @@ test('show', function() {
uiObj = ui;
}
});
+ ok(uiObj !== undefined, 'should fire show after init');
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');
+ equals(uiObj.index, 0, 'should have index');
});