Skip to content
Permalink
Browse files

accordion: activate test fix, use false to close, not -1

  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent ee28074 commit 1bd910e6d01f636c1c719ad795eb7f5c8e4be543
Showing with 1 addition and 2 deletions.
  1. +1 −2 tests/unit/accordion/accordion_methods.js
@@ -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);
});

0 comments on commit 1bd910e

Please sign in to comment.
You can’t perform that action at this time.