]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu tests: Anchor the regex for aria-activedescendant check.
authorScott González <scott.gonzalez@gmail.com>
Wed, 30 May 2012 12:08:12 +0000 (08:08 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 30 May 2012 12:08:12 +0000 (08:08 -0400)
tests/unit/menu/menu_core.js

index 6dab6addd1ba6a2e9fa8fb50887e875f466ff422..7732fd7b76e04cac547915cb78e96ad316f34610 100644 (file)
@@ -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);