Bug Tracker

Show
Ignore:
Timestamp:
01/23/08 19:24:19 (1 year ago)
Author:
joern.zaefferer
Message:

Updated to component naming standard (makeAccordion etc.), added enable/disable/remove/changeAccordion; fixed outstanding bugs (pixel-flickering in IE/Opera); added option to customize navigation-filtering (navigationFilter, callback); fixed unaccordion (now removeAccordion) to properly cleanup everything (display, height), remove only namespaced events

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/accordion/test/test.js

    r4141 r4523  
    1313 
    1414test("autoheight", function() { 
    15     $('#navigation').accordion({ header: '.head',autoheight: false }); 
     15    $('#navigation').makeAccordion({ header: '.head', autoheight: false }); 
    1616    equals( 90, $('#navigation ul:first').height() ); 
    1717    equals( 126, $('#navigation ul:eq(1)').height() ); 
    1818    equals( 54, $('#navigation ul:last').height() ); 
    19     $('#navigation').unaccordion().accordion({ header: '.head',autoheight: true }); 
     19    $('#navigation').removeAccordion().makeAccordion({ header: '.head',autoheight: true }); 
    2020    equals( 126, $('#navigation ul:first').height() ); 
    2121    equals( 126, $('#navigation ul:eq(1)').height() ); 
     
    2424 
    2525test("activate, numeric", function() { 
    26     var ac = $('#list1').accordion({ active: 1 }); 
     26    var ac = $('#list1').makeAccordion({ active: 1 }); 
    2727    state(ac, 0, 1, 0); 
    2828    ac.activate(2); 
     
    3939 
    4040test("activate, boolean and numeric, alwaysOpen:false", function() { 
    41     var ac = $('#list1').accordion({alwaysOpen: false}).activate(2); 
     41    var ac = $('#list1').makeAccordion({alwaysOpen: false}).activate(2); 
    4242    state(ac, 0, 0, 1); 
    4343    ok("x", "----") 
     
    5050 
    5151test("activate, boolean, alwaysOpen:true", function() { 
    52     var ac = $('#list1').accordion().activate(2); 
     52    var ac = $('#list1').makeAccordion().activate(2); 
    5353    state(ac, 0, 0, 1); 
    5454    ac.activate(-1); 
     
    5757 
    5858test("activate, string expression", function() { 
    59     var ac = $('#list1').accordion({ active: ":last" }); 
     59    var ac = $('#list1').makeAccordion({ active: ":last" }); 
    6060    state(ac, 0, 0, 1); 
    6161    ac.activate(":first"); 
     
    6868 
    6969test("activate, jQuery or DOM element", function() { 
    70     var ac = $('#list1').accordion({ active: $("#list1 a:last") }); 
     70    var ac = $('#list1').makeAccordion({ active: $("#list1 a:last") }); 
    7171    state(ac, 0, 0, 1); 
    7272    ac.activate($("#list1 a:first"));