aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-30 04:01:04 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-30 04:01:04 +0000
commit3ad604216e7c27ef3a146f2aafeb911477944770 (patch)
tree60e155ad1de94b940a8d19ea0629920574b5a29a /tests
parentd6406b967198e91873881292f854bb5bccf498b9 (diff)
downloadjquery-ui-3ad604216e7c27ef3a146f2aafeb911477944770.tar.gz
jquery-ui-3ad604216e7c27ef3a146f2aafeb911477944770.zip
Accordion: Fixed tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion.html6
-rw-r--r--tests/unit/accordion/accordion.js12
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html
index 5e5012dbc..3bd3ff179 100644
--- a/tests/unit/accordion/accordion.html
+++ b/tests/unit/accordion/accordion.html
@@ -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>
diff --git a/tests/unit/accordion/accordion.js b/tests/unit/accordion/accordion.js
index 63222465e..8755f75af 100644
--- a/tests/unit/accordion/accordion.js
+++ b/tests/unit/accordion/accordion.js
@@ -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() {