aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/accordion
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-30 21:47:20 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-30 21:47:20 +0000
commit4aff25a422365179e2eaaf8c301e7c69df67a976 (patch)
treeb15a38721f42311306198e1e8ffc07024b01e5f2 /tests/visual/accordion
parenta1e9c63911b729ddffcd6e2fa86bb7af070fde84 (diff)
downloadjquery-ui-4aff25a422365179e2eaaf8c301e7c69df67a976.tar.gz
jquery-ui-4aff25a422365179e2eaaf8c301e7c69df67a976.zip
accordion: more realistic testcase for autoHeight:false accordion
Diffstat (limited to 'tests/visual/accordion')
-rw-r--r--tests/visual/accordion/width.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/visual/accordion/width.html b/tests/visual/accordion/width.html
new file mode 100644
index 000000000..78985ab6d
--- /dev/null
+++ b/tests/visual/accordion/width.html
@@ -0,0 +1,57 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Accordion - No Auto Height Test</title>
+ <link rel="stylesheet" href="../../static/static.css" type="text/css" />
+ <link type="text/css" href="../../../themes/base/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.accordion.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#accordion").accordion({
+ autoHeight: false
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo" style="width:300px">
+
+<div id="accordion">
+ <h3><a href="#">Section 1</a></h3>
+ <div>
+ <p>Mauris mauris ante, blandit et, ultrices a, susceros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
+ </div>
+ <h3><a href="#">Section 2</a></h3>
+ <div>
+ <p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
+ </div>
+ <h3><a href="#">Section 3</a></h3>
+ <div>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <ul>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ </ul>
+ </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Setting <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>