diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-06-21 16:16:59 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-06-21 16:16:59 +0000 |
commit | 2e3b8eac77fe95b583a945a022bced62c478408f (patch) | |
tree | 8c8ca400373c69649da85d17862feb29e2400c15 /tests/accordion.html | |
parent | 9196c2022c428d5aa2b75e2558f981458356e9da (diff) | |
download | jquery-ui-2e3b8eac77fe95b583a945a022bced62c478408f.tar.gz jquery-ui-2e3b8eac77fe95b583a945a022bced62c478408f.zip |
accordion: added test for headers with descendants; replaced while-loop to find header-parent with call to parents
Diffstat (limited to 'tests/accordion.html')
-rw-r--r-- | tests/accordion.html | 217 |
1 files changed, 90 insertions, 127 deletions
diff --git a/tests/accordion.html b/tests/accordion.html index 194b130b2..275ebe0e7 100644 --- a/tests/accordion.html +++ b/tests/accordion.html @@ -33,145 +33,108 @@ <div id="main" style="position:absolute;top:-2000000px;"> - <fieldset> - <legend>Standard, container is a div, header is h3 and content p</legend> + <div id="list1"> + <a>There is one obvious advantage:</a> + <div> + <p> + You've seen it coming!<br/> + Buy now and get nothing for free!<br/> + Well, at least no free beer. Perhaps a bear, if you can afford it. + </p> + </div> + <a>Now that you've got...</a> + <div> + <p> + your bear, you have to admit it!<br/> + No, we aren't selling bears. + </p> + <p> + We could talk about renting one. + </p> + </div> + <a>Rent one bear, ...</a> + <div> + <p> + get two for three beer. + </p> + <p> + And now, for something completely different. + </p> + </div> + </div> - <div id="list1"> - <a>There is one obvious advantage:</a> - <div> - <p> - You've seen it coming!<br/> - Buy now and get nothing for free!<br/> - Well, at least no free beer. Perhaps a bear, if you can afford it. - </p> - </div> - <a>Now that you've got...</a> - <div> - <p> - your bear, you have to admit it!<br/> - No, we aren't selling bears. - </p> - <p> - We could talk about renting one. - </p> - </div> - <a>Rent one bear, ...</a> + <ul id="navigation"> + <li> + <a class="head" 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> + <li><a href="?p=1.1.1.3">Amps</a></li> + <li><a href="?p=1.1.1.4">Effects</a></li> + <li><a href="?p=1.1.1.5">Accessories</a></li> + </ul> + </li> + <li> + <a class="head" 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> + <li><a href="?p=1.1.2.3">Amps</a></li> + <li><a href="?p=1.1.2.4">Effects</a></li> + <li><a href="?p=1.1.2.5">Accessories</a></li> + <li><a href="?p=1.1.2.5">Accessories</a></li> + <li><a href="?p=1.1.2.5">Accessories</a></li> + </ul> + </li> + <li> + <a class="head" 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> + <li><a href="?p=1.1.3.6">Accessories</a></li> + </ul> + </li> + </ul> + <dl id="list2"> + <dt class="red">Red</dt> + <dd> + Fancy stuff about red thingies. + </dd> + <dt class="green selected">Green</dt> + <dd> + Green! Green! Green! + </dd> + <dt class="blue">Blue</dt> + <dd> + Cool kids are blue. + </dd> + </dl> + + <div id="list3"> + <div> + <div class="title">Tennis</div> <div> - <p> - get two for three beer. - </p> - <p> - And now, for something completely different. - </p> + One ball, two players. Lots of fun. </div> </div> - - </fieldset> - - <fieldset> - <legend>Navigation - Unordered List with anchors and nested lists.</legend> - <p>The first item is cloned to allow the user to select it. The - active element is choosen based on location.hash: Open Drums and click - the first item ('Drums'), then reload the page.</p> - - <ul id="navigation"> - <li> - <a class="head" 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> - <li><a href="?p=1.1.1.3">Amps</a></li> - <li><a href="?p=1.1.1.4">Effects</a></li> - <li><a href="?p=1.1.1.5">Accessories</a></li> - </ul> - </li> - <li> - <a class="head" href="?p=1.1.2">Bass</a> - <ul> - <li><a href="?p=1.1.2.1">Electric</a></li> - <li><a href="?p=1.1.2.2">Acoustic</a></li> - <li><a href="?p=1.1.2.3">Amps</a></li> - <li><a href="?p=1.1.2.4">Effects</a></li> - <li><a href="?p=1.1.2.5">Accessories</a></li> - <li><a href="?p=1.1.2.5">Accessories</a></li> - <li><a href="?p=1.1.2.5">Accessories</a></li> - </ul> - </li> - <li> - <a class="head" 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> - <li><a href="?p=1.1.3.6">Accessories</a></li> - </ul> - </li> - </ul> - - </fieldset> - - <fieldset> - <legend>With options, container is a definition list, header dt, content dd</legend> - - <dl id="list2"> - <dt class="red">Red</dt> - <dd> - Fancy stuff about red thingies. - </dd> - <dt class="green selected">Green</dt> - <dd> - Green! Green! Green! - </dd> - <dt class="blue">Blue</dt> - <dd> - Cool kids are blue. - </dd> - </dl> - - </fieldset> - - <fieldset> - <legend>Divitus structure, div container, div header (class title), div - content, no active on startup and can be completely closed</legend> - - <div id="list3"> + <div> + <div class="title">Soccer</div> <div> - <div class="title">Tennis</div> - <div> - One ball, two players. Lots of fun. - </div> + One ball, 22 players. Lots of fun. </div> + </div> + <div> + <div class="title">Baseball</div> <div> - <div class="title">Soccer</div> - <div> - One ball, 22 players. Lots of fun. - </div> + Well, one ball, some guys running around, some guys hitting others with a stick.<br/> + Sounds like fun, doesn't it? </div> <div> - <div class="title">Baseball</div> - <div> - Well, one ball, some guys running around, some guys hitting others with a stick.<br/> - Sounds like fun, doesn't it? - </div> - <div> - Well, apart from the running part. - </div> + Well, apart from the running part. </div> </div> - - </fieldset> - - <div id="switch"> - <select> - <option>Switch to...</option> - <option value="1">1</option> - <option value="2">2</option> - <option value="3">3</option> - </select> - <button id="close">Close all</button> - Activate via selector, eg. ':first' or 'a:first': <input id="switch2" /> </div> - - <div id="log"><div><strong>Log of the 2nd accordion</strong></div></div> + </div> </body> |