Bug Tracker

root / trunk / plugins / accordion / test / index.html

Revision 4141, 4.3 kB (checked in by joern.zaefferer, 1 year ago)

fixed testsuite

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html>
4<head>
5    <title>jQuery Accordion Test Suite</title>
6   
7    <link rel="stylesheet" href="testsuite.css"/>
8    <script type="text/javascript" src="../lib/jquery.js"></script>
9    <script type="text/javascript" src="../lib/jquery.dimensions.js"></script>
10    <script type="text/javascript" src="../jquery.accordion.js"></script>
11    <script type="text/javascript" src="testrunner.js"></script>
12    <script type="text/javascript" src="test.js"></script>
13    <style type="text/css">
14        .xerror, .error { display: none }
15    </style>
16
17</head>
18<body>
19    <h1>jQuery - Accordion Test Suite</h1>
20    <h2 id="banner"></h2>
21    <h2 id="userAgent"></h2>
22
23    <ol id="tests"></ol>
24
25<div id="main" style="position:absolute;top:-2000000px;">
26
27    <fieldset>
28        <legend>Standard, container is a div, header is h3 and content p</legend>   
29
30        <div id="list1">
31            <a>There is one obvious advantage:</a>
32            <div>
33                <p>
34                    You've seen it coming!<br/>
35                    Buy now and get nothing for free!<br/>
36                    Well, at least no free beer. Perhaps a bear, if you can afford it.
37                </p>
38            </div>
39            <a>Now that you've got...</a>
40            <div>
41                <p>
42                    your bear, you have to admit it!<br/>
43                    No, we aren't selling bears.
44                </p>
45                <p>
46                    We could talk about renting one.
47                </p>
48            </div>
49            <a>Rent one bear, ...</a>
50            <div>
51                <p>
52                    get two for three beer.
53                </p>
54                <p>
55                    And now, for something completely different.
56                </p>
57            </div>
58        </div>
59       
60    </fieldset>
61   
62    <fieldset>
63        <legend>Navigation - Unordered List with anchors and nested lists.</legend>
64        <p>The first item is cloned to allow the user to select it. The
65        active element is choosen based on location.hash: Open Drums and click
66        the first item ('Drums'), then reload the page.</p>
67
68        <ul id="navigation">
69            <li>
70                <a class="head" href="?p=1.1.1">Guitar</a>
71                <ul>
72                    <li><a href="?p=1.1.1.1">Electric</a></li>
73                    <li><a href="?p=1.1.1.2">Acoustic</a></li>
74                    <li><a href="?p=1.1.1.3">Amps</a></li>
75                    <li><a href="?p=1.1.1.4">Effects</a></li>
76                    <li><a href="?p=1.1.1.5">Accessories</a></li>
77                </ul>
78            </li>
79            <li>
80                <a class="head" href="?p=1.1.2">Bass</a>
81                <ul>
82                    <li><a href="?p=1.1.2.1">Electric</a></li>
83                    <li><a href="?p=1.1.2.2">Acoustic</a></li>
84                    <li><a href="?p=1.1.2.3">Amps</a></li>
85                    <li><a href="?p=1.1.2.4">Effects</a></li>
86                    <li><a href="?p=1.1.2.5">Accessories</a></li>
87                    <li><a href="?p=1.1.2.5">Accessories</a></li>
88                    <li><a href="?p=1.1.2.5">Accessories</a></li>
89                </ul>
90            </li>
91            <li>
92                <a class="head" href="?p=1.1.3">Drums</a>
93                <ul>
94                    <li><a href="?p=1.1.3.2">Acoustic Drums</a></li>
95                    <li><a href="?p=1.1.3.3">Electronic Drums</a></li>
96                    <li><a href="?p=1.1.3.6">Accessories</a></li>
97                </ul>
98            </li>
99        </ul>
100       
101    </fieldset>
102
103    <fieldset>
104        <legend>With options, container is a definition list, header dt, content dd</legend>
105       
106        <dl id="list2">
107            <dt class="red">Red</dt>
108            <dd>
109                Fancy stuff about red thingies.
110            </dd>
111            <dt class="green selected">Green</dt>
112            <dd>
113                Green! Green! Green!
114            </dd>
115            <dt class="blue">Blue</dt>
116            <dd>
117                Cool kids are blue.
118            </dd>
119        </dl>
120       
121    </fieldset>
122
123    <fieldset>
124        <legend>Divitus structure, div container, div header (class title), div
125        content, no active on startup and can be completely closed</legend>
126
127        <div id="list3">
128            <div>
129                <div class="title">Tennis</div>
130                <div>
131                    One ball, two players. Lots of fun.
132                </div>
133            </div>
134            <div>
135                <div class="title">Soccer</div>
136                <div>
137                    One ball, 22 players. Lots of fun.
138                </div>
139            </div>
140            <div>
141                <div class="title">Baseball</div>
142                <div>
143                    Well, one ball, some guys running around, some guys hitting others with a stick.<br/>
144                    Sounds like fun, doesn't it?
145                </div>
146                <div>
147                    Well, apart from the running part.
148                </div>
149            </div>
150        </div>
151       
152    </fieldset>
153       
154        <div id="switch">
155            <select>
156                <option>Switch to...</option>
157                <option value="1">1</option>
158                <option value="2">2</option>
159                <option value="3">3</option>
160            </select>
161            <button id="close">Close all</button>
162            Activate via selector, eg. ':first' or 'a:first': <input id="switch2" />
163        </div>
164
165        <div id="log"><div><strong>Log of the 2nd accordion</strong></div></div>
166</div>
167    </body>
168</html>
Note: See TracBrowser for help on using the browser.