Skip to content

Commit

Permalink
Menu tests: Anchor the regex for aria-activedescendant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed May 30, 2012
1 parent fe567eb commit f5954fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/menu/menu_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test("accessibility", function () {

item = menu.find( "li:last" );
menu.menu( "focus", $.Event(), item );
ok( /ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
ok( /^ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
});

})(jQuery);

0 comments on commit f5954fc

Please sign in to comment.