Skip to content

Commit f5954fc

Browse files
committed
Menu tests: Anchor the regex for aria-activedescendant check.
1 parent fe567eb commit f5954fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/menu/menu_core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test("accessibility", function () {
2323

2424
item = menu.find( "li:last" );
2525
menu.menu( "focus", $.Event(), item );
26-
ok( /ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
26+
ok( /^ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
2727
});
2828

2929
})(jQuery);

0 commit comments

Comments
 (0)