aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-03 09:59:05 -0500
committerScott González <scott.gonzalez@gmail.com>2011-02-03 09:59:05 -0500
commitd099e3a3b2645ed1c6b0da8a654553970be7140c (patch)
tree9ed1d7038bd4ecefbce7bf926ef6bf256ac532e7 /tests
parent714a77f202ee02b894992722d2e6b35b4089557e (diff)
downloadjquery-ui-d099e3a3b2645ed1c6b0da8a654553970be7140c.tar.gz
jquery-ui-d099e3a3b2645ed1c6b0da8a654553970be7140c.zip
Accordion: Handle negative values for active option on init.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_options.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js
index 71154d57a..9aa7e6e76 100644
--- a/tests/unit/accordion/accordion_options.js
+++ b/tests/unit/accordion/accordion_options.js
@@ -51,12 +51,11 @@ test( "{ active: Number }", function() {
if ( $.uiBackCompat === false ) {
test( "{ active: -Number }", function() {
- // TODO: fix initializing with negative value
var ac = $( "#list1" ).accordion({
-// active: -1
+ active: -1
});
-// equals( ac.accordion( "option", "active" ), 2 );
-// state( ac, 0, 0, 1 );
+ equals( ac.accordion( "option", "active" ), 2 );
+ state( ac, 0, 0, 1 );
ac.accordion( "option", "active", -2 );
equals( ac.accordion( "option", "active" ), 1 );