From: Scott González Date: Wed, 30 May 2012 12:08:12 +0000 (-0400) Subject: Menu tests: Anchor the regex for aria-activedescendant check. X-Git-Tag: 1.9.0-beta.1~82 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5954fcd743079058dd0b2113dca3c029072e4dd;p=jquery-ui.git Menu tests: Anchor the regex for aria-activedescendant check. --- diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js index 6dab6addd..7732fd7b7 100644 --- a/tests/unit/menu/menu_core.js +++ b/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);