From f5954fcd743079058dd0b2113dca3c029072e4dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 30 May 2012 08:08:12 -0400 Subject: [PATCH] Menu tests: Anchor the regex for aria-activedescendant check. --- tests/unit/menu/menu_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5