Skip to content
Permalink
Browse files

Accordion: Fixed tests.

  • Loading branch information
scottgonzalez committed Jan 30, 2009
1 parent d6406b9 commit 3ad604216e7c27ef3a146f2aafeb911477944770
Showing with 9 additions and 9 deletions.
  1. +3 −3 tests/unit/accordion/accordion.html
  2. +6 −6 tests/unit/accordion/accordion.js
@@ -52,8 +52,8 @@
</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>
@@ -62,8 +62,8 @@
<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>
@@ -74,8 +74,8 @@
<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>
@@ -24,13 +24,13 @@ test("basics", function() {

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() {

0 comments on commit 3ad6042

Please sign in to comment.
You can’t perform that action at this time.