diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-23 17:01:19 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-23 17:01:19 +0100 |
commit | d7682daaa8625c2134386c501e9e5ffaab004984 (patch) | |
tree | 7b2947fe05325d5ae8ca642830fd83f6cfa4391d | |
parent | 9626484dd5216f7597d4bb9680c95b9b210bac15 (diff) | |
download | jquery-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.html | 12 |
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> |