]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu tests: Modify test to check for id's generated by the new uniqueId method
authorkborchers <kris.borchers@gmail.com>
Wed, 30 May 2012 01:59:50 +0000 (20:59 -0500)
committerkborchers <kris.borchers@gmail.com>
Wed, 30 May 2012 02:13:45 +0000 (21:13 -0500)
tests/unit/menu/menu_core.js

index 68b625687e3d65433457275fc2d24152d5adece2..6dab6addd1ba6a2e9fa8fb50887e875f466ff422 100644 (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);