Skip to content
Browse files

Selectmenu tests: adjust accessibility test

  • Loading branch information...
1 parent a9a6e3b commit 94b3a65c66e338fc6f697d13fc77d7f19b8666ae @fnagel fnagel committed Nov 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/selectmenu/selectmenu_core.js
View
2 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" );

0 comments on commit 94b3a65

Please sign in to comment.
Something went wrong with that request. Please try again.