aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-23 17:01:19 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-23 17:01:19 +0100
commitd7682daaa8625c2134386c501e9e5ffaab004984 (patch)
tree7b2947fe05325d5ae8ca642830fd83f6cfa4391d
parent9626484dd5216f7597d4bb9680c95b9b210bac15 (diff)
downloadjquery-ui-d7682daaa8625c2134386c501e9e5ffaab004984.tar.gz
jquery-ui-d7682daaa8625c2134386c501e9e5ffaab004984.zip
Menu: Add some testing for ensure that id-attributes aren't overwritten.
-rw-r--r--tests/visual/menu/flyoutmenu.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/visual/menu/flyoutmenu.html b/tests/visual/menu/flyoutmenu.html
index 55e7053e5..dc2db8830 100644
--- a/tests/visual/menu/flyoutmenu.html
+++ b/tests/visual/menu/flyoutmenu.html
@@ -54,7 +54,7 @@
},
*/
select: function(event, ui) {
- $("#log").append("<div>Selected " + ui.item.children("a").text() + "</div>");
+ $("#log").append("<div>Selected " + ui.item.children("a").text() + "(" + ui.item.children("a").attr("id") + ")</div>");
button.focus();
}
}).hide();
@@ -79,10 +79,10 @@
<ul id="menu">
<li>
- <a href="#">Amsterdam</a>
+ <a id="a1" href="#">Amsterdam</a>
<ul>
- <li><a href="#">Aberdeen</a></li>
- <li><a href="#">Ada</a></li>
+ <li><a id="b1" href="#">Aberdeen</a></li>
+ <li><a id="b2" href="#">Ada</a></li>
<li>
<a href="#">Adamsville</a>
<ul>
@@ -104,8 +104,8 @@
<li><a href="#">Amesville</a></li>
</ul>
</li>
- <li><a href="#">Anaheim</a></li>
- <li><a href="#">Cologne</a></li>
+ <li><a id="a2" href="#">Anaheim</a></li>
+ <li><a id="a3" href="#">Cologne</a></li>
<li><a href="#">Frankfurt</a></li>
<li>
<a href="#">Magdeburg</a>