aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/accordion/accordion_methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-04-15 02:33:28 +0000
committerScott González <scott.gonzalez@gmail.com>2009-04-15 02:33:28 +0000
commit1195854aaad61308e7f5339eed54f92284d7666e (patch)
tree5991992a73f910d897967559332a15bd774816d8 /tests/unit/accordion/accordion_methods.js
parent3c7b61299333d1ec3f4d4d773b1ec4296129a98e (diff)
downloadjquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.tar.gz
jquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.zip
Merged in widget-factory branch and added tests. Fixes #4411 - Widget factory should auto detect getters.
Diffstat (limited to 'tests/unit/accordion/accordion_methods.js')
-rw-r--r--tests/unit/accordion/accordion_methods.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/accordion/accordion_methods.js b/tests/unit/accordion/accordion_methods.js
index 8b3a491a8..e13a4a47e 100644
--- a/tests/unit/accordion/accordion_methods.js
+++ b/tests/unit/accordion/accordion_methods.js
@@ -10,17 +10,32 @@ test("init", function() {
});
test("destroy", function() {
+ var expected = $('#list1').accordion(),
+ actual = expected.accordion('destroy');
+ equals(actual, expected, 'destroy is chainable');
ok(false, 'missing test - untested code is broken code');
});
test("enable", function() {
+ var expected = $('#list1').accordion(),
+ actual = expected.accordion('enable');
+ equals(actual, expected, 'enable is chainable');
ok(false, 'missing test - untested code is broken code');
});
test("disable", function() {
+ var expected = $('#list1').accordion(),
+ actual = expected.accordion('disable');
+ equals(actual, expected, 'disable is chainable');
ok(false, 'missing test - untested code is broken code');
});
+test("activate", function() {
+ var expected = $('#list1').accordion(),
+ actual = expected.accordion('activate', 2);
+ equals(actual, expected, 'activate is chainable');
+});
+
test("activate, numeric", function() {
var ac = $('#list1').accordion({ active: 1 });
state(ac, 0, 1, 0);
@@ -74,4 +89,11 @@ test("activate, jQuery or DOM element", function() {
state(ac, 0, 1, 0);
});
+test("resize", function() {
+ var expected = $('#list1').accordion(),
+ actual = expected.accordion('resize');
+ equals(actual, expected, 'resize is chainable');
+ ok(false, 'missing test - untested code is broken code');
+});
+
})(jQuery);