r1887 - trunk/tests/unit/accordion

r1887 - trunk/tests/unit/accordion


Author: scott.gonzalez
Date: Thu Jan 29 20:01:04 2009
New Revision: 1887
Modified:
trunk/tests/unit/accordion/accordion.html
trunk/tests/unit/accordion/accordion.js
Log:
Accordion: Fixed tests.
Modified: trunk/tests/unit/accordion/accordion.html
==============================================================================
--- trunk/tests/unit/accordion/accordion.html    (original)
+++ trunk/tests/unit/accordion/accordion.html    Thu Jan 29 20:01:04 2009
@@ -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>
Modified: trunk/tests/unit/accordion/accordion.js
==============================================================================
--- trunk/tests/unit/accordion/accordion.js    (original)
+++ trunk/tests/unit/accordion/accordion.js    Thu Jan 29 20:01:04 2009
@@ -24,13 +24,13 @@
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() {