Menu tests: Modify test to check for id's generated by the new uniqueId method

This commit is contained in:
kborchers 2012-05-29 20:59:50 -05:00
parent d44f3d079e
commit 1f60380413

View File

@ -23,7 +23,7 @@ test("accessibility", function () {
item = menu.find( "li:last" );
menu.menu( "focus", $.Event(), item );
equal( menu.attr("aria-activedescendant"), "menu1-4", "aria attribute, generated id");
ok( /ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
});
})(jQuery);