From 1f60380413d65920df37fb9dc90a06378a44b6de Mon Sep 17 00:00:00 2001 From: kborchers Date: Tue, 29 May 2012 20:59:50 -0500 Subject: [PATCH] Menu tests: Modify test to check for id's generated by the new uniqueId method --- 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 68b625687..6dab6addd 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 ); - 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); -- 2.39.5