diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-30 08:08:12 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-30 08:08:12 -0400 |
commit | f5954fcd743079058dd0b2113dca3c029072e4dd (patch) | |
tree | 2466d28244cb343408e712e7c121de8fdc143077 | |
parent | fe567eb9584892b3a035f74d5f75c149576fe1b8 (diff) | |
download | jquery-ui-f5954fcd743079058dd0b2113dca3c029072e4dd.tar.gz jquery-ui-f5954fcd743079058dd0b2113dca3c029072e4dd.zip |
Menu tests: Anchor the regex for aria-activedescendant check.
-rw-r--r-- | tests/unit/menu/menu_core.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |