aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-08-11 00:57:50 +0000
committerRichard Worth <rdworth@gmail.com>2009-08-11 00:57:50 +0000
commit5c5e0832d4856289694db65efee5bb4abb48dfee (patch)
tree1c9ed1baffbf4365e808dee73c7407c4135471da /tests
parent7b506cf2aecb8c8988b95b0e59b8593fd1c484bd (diff)
downloadjquery-ui-5c5e0832d4856289694db65efee5bb4abb48dfee.tar.gz
jquery-ui-5c5e0832d4856289694db65efee5bb4abb48dfee.zip
Accordion: added a couple failing tests for option active: init and collapsed
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_options.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js
index 00b3dbb8c..b03eea223 100644
--- a/tests/unit/accordion/accordion_options.js
+++ b/tests/unit/accordion/accordion_options.js
@@ -6,7 +6,8 @@
module("accordion: options");
test("{ active: first child }, default", function() {
- ok(false, 'missing test - untested code is broken code');
+ $("#list1").accordion();
+ equals( $("#list1").accordion('option', 'active'), 0);
});
test("{ active: Selector }", function() {
@@ -35,6 +36,7 @@ test("{ active: false }", function() {
collapsible: true
});
equals( $("#list1 .ui-accordion-header.ui-state-active").size(), 0, "no headers selected" );
+ equals( $("#list1").accordion('option', 'active'), false);
});
test("{ active: Number }", function() {
@@ -93,7 +95,12 @@ test("{ collapsible: false }, default", function() {
});
test("{ collapsible: true }", function() {
- ok(false, 'missing test - untested code is broken code');
+ $("#list1").accordion({
+ active: 1,
+ collapsible: true
+ });
+ $('.ui-accordion-header:eq(1)', '#list1').click();
+ equals( $("#list1").accordion('option', 'active'), false);
});
test("{ event: 'click' }, default", function() {