Changeset 4523 for trunk/plugins/accordion/test
- Timestamp:
- 01/23/08 19:24:19 (1 year ago)
- Files:
-
- 1 modified
-
trunk/plugins/accordion/test/test.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/accordion/test/test.js
r4141 r4523 13 13 14 14 test("autoheight", function() { 15 $('#navigation'). accordion({ header: '.head',autoheight: false });15 $('#navigation').makeAccordion({ header: '.head', autoheight: false }); 16 16 equals( 90, $('#navigation ul:first').height() ); 17 17 equals( 126, $('#navigation ul:eq(1)').height() ); 18 18 equals( 54, $('#navigation ul:last').height() ); 19 $('#navigation'). unaccordion().accordion({ header: '.head',autoheight: true });19 $('#navigation').removeAccordion().makeAccordion({ header: '.head',autoheight: true }); 20 20 equals( 126, $('#navigation ul:first').height() ); 21 21 equals( 126, $('#navigation ul:eq(1)').height() ); … … 24 24 25 25 test("activate, numeric", function() { 26 var ac = $('#list1'). accordion({ active: 1 });26 var ac = $('#list1').makeAccordion({ active: 1 }); 27 27 state(ac, 0, 1, 0); 28 28 ac.activate(2); … … 39 39 40 40 test("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); 42 42 state(ac, 0, 0, 1); 43 43 ok("x", "----") … … 50 50 51 51 test("activate, boolean, alwaysOpen:true", function() { 52 var ac = $('#list1'). accordion().activate(2);52 var ac = $('#list1').makeAccordion().activate(2); 53 53 state(ac, 0, 0, 1); 54 54 ac.activate(-1); … … 57 57 58 58 test("activate, string expression", function() { 59 var ac = $('#list1'). accordion({ active: ":last" });59 var ac = $('#list1').makeAccordion({ active: ":last" }); 60 60 state(ac, 0, 0, 1); 61 61 ac.activate(":first"); … … 68 68 69 69 test("activate, jQuery or DOM element", function() { 70 var ac = $('#list1'). accordion({ active: $("#list1 a:last") });70 var ac = $('#list1').makeAccordion({ active: $("#list1 a:last") }); 71 71 state(ac, 0, 0, 1); 72 72 ac.activate($("#list1 a:first"));
