Skip to content
Permalink
Browse files

Menu tests: Anchor the regex for aria-activedescendant check.

  • Loading branch information...
scottgonzalez committed May 30, 2012
1 parent fe567eb commit f5954fcd743079058dd0b2113dca3c029072e4dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/menu/menu_core.js
@@ -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.
You can’t perform that action at this time.