[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/libraries/jquery.ui/tests/unit/accordion/ -> accordion_options.js (source)

   1  /*

   2   * accordion_options.js

   3   */
   4  (function($) {
   5  
   6  module("accordion: options");
   7  
   8  test("{ active: first child }, default", function() {
   9      ok(false, 'missing test - untested code is broken code');
  10  });
  11  
  12  test("{ active: Selector }", function() {
  13      ok(false, 'missing test - untested code is broken code');
  14  });
  15  
  16  test("{ active: Element }", function() {
  17      ok(false, 'missing test - untested code is broken code');
  18  });
  19  
  20  test("{ active: jQuery Object }", function() {
  21      ok(false, 'missing test - untested code is broken code');
  22  });
  23  
  24  test("{ active: true }", function() {
  25      $("#list1").accordion({
  26          active: true,
  27          collapsible: false
  28      });
  29      equals( $("#list1 .ui-accordion-header.ui-state-active").size(), 1, "one header selected" );
  30  });
  31  
  32  test("{ active: false }", function() {
  33      $("#list1").accordion({
  34          active: false,
  35          collapsible: true
  36      });
  37      equals( $("#list1 .ui-accordion-header.ui-state-active").size(), 0, "no headers selected" );
  38  });
  39  
  40  test("{ active: Number }", function() {
  41      ok(false, 'missing test - untested code is broken code');
  42  });
  43  
  44  test("{ animated: false }, default", function() {
  45      ok(false, 'missing test - untested code is broken code');
  46  });
  47  
  48  test("{ animated: true }", function() {
  49      ok(false, 'missing test - untested code is broken code');
  50  });
  51  
  52  test("{ animated: String }", function() {
  53      ok(false, 'missing test - untested code is broken code');
  54  });
  55  
  56  test("{ autoHeight: true }, default", function() {
  57      $('#navigation').accordion({ autoHeight: true });
  58      equals( $('#navigation > li:eq(0) > ul').height(), 112 );
  59      equals( $('#navigation > li:eq(1) > ul').height(), 112 );
  60      equals( $('#navigation > li:eq(2) > ul').height(), 112 );
  61  });
  62  
  63  test("{ autoHeight: false }", function() {
  64      $('#navigation').accordion({ autoHeight: false });
  65      equals( $('#navigation > li:eq(0) > ul').height(), 80 );
  66      equals( $('#navigation > li:eq(1) > ul').height(), 112 );
  67      equals( $('#navigation > li:eq(2) > ul').height(), 48 );
  68  });
  69  
  70  test("{ clearStyle: false }, default", function() {
  71      ok(false, 'missing test - untested code is broken code');
  72  });
  73  
  74  test("{ clearStyle: true }", function() {
  75      ok(false, 'missing test - untested code is broken code');
  76  });
  77  
  78  test("{ collapsible: false }, default", function() {
  79      ok(false, 'missing test - untested code is broken code');
  80  });
  81  
  82  test("{ collapsible: true }", function() {
  83      ok(false, 'missing test - untested code is broken code');
  84  });
  85  
  86  test("{ event: 'click' }, default", function() {
  87      ok(false, 'missing test - untested code is broken code');
  88  });
  89  
  90  test("{ event: 'mouseover' }", function() {
  91      ok(false, 'missing test - untested code is broken code');
  92  });
  93  
  94  test("{ fillSpace: false }, default", function() {
  95      ok(false, 'missing test - untested code is broken code');
  96  });
  97  
  98  test("{ fillSpace: true }", function() {
  99      ok(false, 'missing test - untested code is broken code');
 100  });
 101  
 102  test("{ header: '> li > :first-child,> :not(li):even' }, default", function() {
 103      ok(false, 'missing test - untested code is broken code');
 104  });
 105  
 106  test("{ header: Selector }", function() {
 107      ok(false, 'missing test - untested code is broken code');
 108  });
 109  
 110  test("{ header: jQuery Object }", function() {
 111      ok(false, 'missing test - untested code is broken code');
 112  });
 113  
 114  test("{ icons: { 'header': 'ui-icon-triangle-1-e', 'headerSelected': 'ui-icon-triangle-1-s' } }, default", function() {
 115      ok(false, 'missing test - untested code is broken code');
 116  });
 117  
 118  test("{ icons: { 'header': 'ui-icon-foo', 'headerSelected': 'ui-icon-bar' } }", function() {
 119      ok(false, 'missing test - untested code is broken code');
 120  });
 121  
 122  test("{ navigation: false }, default", function() {
 123      ok(false, 'missing test - untested code is broken code');
 124  });
 125  
 126  test("{ navigation: true }", function() {
 127      ok(false, 'missing test - untested code is broken code');
 128  });
 129  
 130  test("{ navigationFilter: Function }, default", function() {
 131      ok(false, 'missing test - untested code is broken code');
 132  });
 133  
 134  })(jQuery);


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7