aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/accordion
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-22 12:01:20 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-22 12:01:20 +0000
commitf3b91832ce164d1ec80d29b83c92535e4a2f8b0b (patch)
treedc4117c1c28df7212fb2a163b9cf69ff3d745301 /tests/visual/accordion
parent892c52225b9c1f7dcb2ec9ff990a458dbe0002ce (diff)
downloadjquery-ui-f3b91832ce164d1ec80d29b83c92535e4a2f8b0b.tar.gz
jquery-ui-f3b91832ce164d1ec80d29b83c92535e4a2f8b0b.zip
tests: Added extra folder level for each plugin in static and visual test folders
Diffstat (limited to 'tests/visual/accordion')
-rw-r--r--tests/visual/accordion/accordion.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/visual/accordion/accordion.html b/tests/visual/accordion/accordion.html
new file mode 100644
index 000000000..fd467dc27
--- /dev/null
+++ b/tests/visual/accordion/accordion.html
@@ -0,0 +1,52 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Accordion Visual Test</title>
+ <link rel="stylesheet" href="../all.css" type="text/css">
+ <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
+ <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() {
+ function on() {
+ $("#accordion").accordion({ header: "h3" });
+ }
+ function off() {
+ $("#accordion").accordion("destroy");
+ }
+ $("#toggle").toggle(on, off).click();
+ })
+ </script>
+</head>
+<body>
+
+<ul class="plugins">
+<li class="plugin">
+ Accordion
+ <div id="accordion">
+ <div>
+ <h3><a href="#">First</a></h3>
+ <div>
+ Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Second</a></h3>
+ <div>
+ Phasellus mattis tincidunt nibh.
+ </div>
+ </div>
+ <div>
+ <h3><a href="#">Third</a></h3>
+ <div>
+ Nam dui erat, auctor a, dignissim quis.
+ </div>
+ </div>
+ </div>
+ <button id="toggle">Toggle</button>
+</li>
+</ul>
+
+</body>
+</html>