]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: activate test fix, use false to close, not -1
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 15 Sep 2009 15:21:42 +0000 (15:21 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 15 Sep 2009 15:21:42 +0000 (15:21 +0000)
tests/unit/accordion/accordion_methods.js

index 75c11b46b833a34b1572eb2124d8115c63a61973..91ed11c5af2f0abbd02d02ecc6d7ffc3ab21fa80 100644 (file)
@@ -69,7 +69,6 @@ test("enable", function() {
        var expected = $('#list1').accordion(),
                actual = expected.accordion('enable');
        equals(actual, expected, 'enable is chainable');
-       
        state(expected, 1, 0, 0)
 });
 
@@ -119,7 +118,7 @@ test("activate, boolean and numeric, collapsible:true", function() {
 test("activate, boolean, collapsible: false", function() {
        var ac = $('#list1').accordion().accordion("activate", 2);
        state(ac, 0, 0, 1);
-       ac.accordion("activate", -1);
+       ac.accordion("activate", false);
        state(ac, 0, 0, 1);
 });