</div>
<ul id="navigation">
- <li><a href="?p=1.1.1">Guitar</a></li>
<li>
+ <a href="?p=1.1.1">Guitar</a>
<ul>
<li><a href="?p=1.1.1.1">Electric</a></li>
<li><a href="?p=1.1.1.2">Acoustic</a></li>
<li><a href="?p=1.1.1.5">Accessories</a></li>
</ul>
</li>
- <li><a href="?p=1.1.2"><span>Bass</span></a></li>
<li>
+ <a href="?p=1.1.2"><span>Bass</span></a>
<ul>
<li><a href="?p=1.1.2.1">Electric</a></li>
<li><a href="?p=1.1.2.2">Acoustic</a></li>
<li><a href="?p=1.1.2.5">Accessories</a></li>
</ul>
</li>
- <li><a href="?p=1.1.3">Drums</a></li>
<li>
+ <a href="?p=1.1.3">Drums</a>
<ul>
<li><a href="?p=1.1.3.2">Acoustic Drums</a></li>
<li><a href="?p=1.1.3.3">Electronic Drums</a></li>
test("autoHeight", function() {
$('#navigation').accordion({ autoHeight: false });
- equals( $('#navigation > li:eq(1)').height(), 90 );
- equals( $('#navigation > li:eq(3)').height(), 126 );
- equals( $('#navigation > li:eq(5)').height(), 54 );
+ equals( $('#navigation > li:eq(0) > ul').height(), 80 );
+ equals( $('#navigation > li:eq(1) > ul').height(), 112 );
+ equals( $('#navigation > li:eq(2) > ul').height(), 48 );
$('#navigation').accordion("destroy").accordion({ autoHeight: true });
- equals( $('#navigation > li:eq(1)').height(), 126 );
- equals( $('#navigation > li:eq(3)').height(), 126 );
- equals( $('#navigation > li:eq(5)').height(), 126 );
+ equals( $('#navigation > li:eq(0) > ul').height(), 112 );
+ equals( $('#navigation > li:eq(1) > ul').height(), 112 );
+ equals( $('#navigation > li:eq(2) > ul').height(), 112 );
});
test("activate, numeric", function() {