aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/accordion
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-14 19:05:59 +0000
committerScott González <scott.gonzalez@gmail.com>2010-03-14 19:05:59 +0000
commit936a934d6dd410074eebb631ea8e6cdf56722800 (patch)
treec50f96d78111107465a457130fc3888d1d75525b /tests/visual/accordion
parent385269e3eae74ad18fa35ea77229a5555baf1884 (diff)
downloadjquery-ui-936a934d6dd410074eebb631ea8e6cdf56722800.tar.gz
jquery-ui-936a934d6dd410074eebb631ea8e6cdf56722800.zip
Accordion: Fixed visual test for dl markup.
Fixes #5329 - Nested Accordion header is not lined up properly.
Diffstat (limited to 'tests/visual/accordion')
-rw-r--r--tests/visual/accordion/accordion_dl.html17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/visual/accordion/accordion_dl.html b/tests/visual/accordion/accordion_dl.html
index e135f7dc7..5159bff94 100644
--- a/tests/visual/accordion/accordion_dl.html
+++ b/tests/visual/accordion/accordion_dl.html
@@ -12,7 +12,12 @@
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
<script type="text/javascript">
$(function() {
- $("dl").accordion()
+ $("dl").accordion({
+ change: function(event, ui) {
+ console.log("new: " + ui.newContent.text());
+ console.log("old: " + ui.oldContent.text());
+ }
+ });
});
</script>
</head>
@@ -23,10 +28,10 @@
<dd>
Accordion Content 1
<dl>
- <dt>Term 1</dt>
- <dt>Definition 1</dt>
- <dt>Term 2</dt>
- <dt>Definition 2</dt>
+ <dt><a href="#">Term 1</a></dt>
+ <dd>Definition 1</dd>
+ <dt><a href="#">Term 2</a></dt>
+ <dd>Definition 2</dd>
</dl>
</dd>
<dt><a href="#">Accordion Header 2</a></dt>
@@ -35,7 +40,7 @@
</dd>
<dt><a href="#">Accordion Header 3</a></dt>
<dd>
- Accordion Content 2
+ Accordion Content 3
</dd>
</dl>