]> source.dussan.org Git - jquery-ui.git/commitdiff
added accordion visual test: option autoHeight true
authorRichard Worth <rdworth@gmail.com>
Mon, 23 Mar 2009 12:43:17 +0000 (12:43 +0000)
committerRichard Worth <rdworth@gmail.com>
Mon, 23 Mar 2009 12:43:17 +0000 (12:43 +0000)
tests/visual/accordion/accordion_option_autoHeight_true.html [new file with mode: 0644]

diff --git a/tests/visual/accordion/accordion_option_autoHeight_true.html b/tests/visual/accordion/accordion_option_autoHeight_true.html
new file mode 100644 (file)
index 0000000..14089a8
--- /dev/null
@@ -0,0 +1,48 @@
+<!doctype html>
+<html lang="en">
+<head>
+       <title>Accordion Visual Test : Accordion option autoHeight true</title>
+       <link rel="stylesheet" href="../visual.css" type="text/css" />
+       <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
+       <script type="text/javascript" src="../../../jquery-1.3.2.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: true
+               });
+       })
+       </script>
+</head>
+<body>
+
+<div id="accordion">
+       <h3><a href="#">Accordion Header 1</a></h3>
+       <div>
+               Accordion Content 1
+       </div>
+       <h3><a href="#">Accordion Header 2</a></h3>
+       <div>
+               Accordion Content 2
+               <p>paragraph</p>
+               <p>paragraph</p>
+               <p>paragraph</p>
+               <p>paragraph</p>
+               <p>paragraph</p>
+               <p>paragraph</p>
+               <p>paragraph</p>
+       </div>
+       <h3><a href="#">Accordion Header 3</a></h3>
+       <div>
+               Accordion Content 3
+               <ul>
+                       <li>list item</li>
+                       <li>list item</li>
+                       <li>list item</li>
+               </ul>
+       </div>
+</div>
+
+</body>
+</html>