aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-11-10 01:37:54 +0100
committerFelix Nagel <info@felixnagel.com>2012-11-10 01:37:54 +0100
commit94b3a65c66e338fc6f697d13fc77d7f19b8666ae (patch)
tree8ccb043edd862274ec36d4b07fbf0da8226ebc9f /tests
parenta9a6e3beaf72a06e922ebd0f8eec16607467a1e7 (diff)
downloadjquery-ui-94b3a65c66e338fc6f697d13fc77d7f19b8666ae.tar.gz
jquery-ui-94b3a65c66e338fc6f697d13fc77d7f19b8666ae.zip
Selectmenu tests: adjust accessibility test
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/selectmenu/selectmenu_core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js
index d7c296133..5b596fe89 100644
--- a/tests/unit/selectmenu/selectmenu_core.js
+++ b/tests/unit/selectmenu/selectmenu_core.js
@@ -19,7 +19,7 @@ test("accessibility", function () {
equal( button.attr("aria-expanded"), "false", "button link aria-expanded" );
equal( button.attr("aria-autocomplete"), "list", "button link aria-autocomplete" );
equal( button.attr("aria-owns"), menu.attr("id"), "button link aria-owns" );
- equal( button.attr("aria-labelledby"), element.prev("label").attr("id"), "button link aria-labelledby" );
+ equal( button.attr("aria-labelledby"), links.eq( element[0].selectedIndex ).attr( "id" ), "button link aria-labelledby" );
equal( button.attr("tabindex"), 0, "button link tabindex" );
equal( menu.attr("role"), "listbox", "menu role" );