From: jzaefferer Date: Thu, 24 Feb 2011 09:07:24 +0000 (+0100) Subject: Menu: Update unit test to use focus instead of activate method X-Git-Tag: 1.9m5~286 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f353cc8fb8a3b27452e29d81af3105734da7aa1;p=jquery-ui.git Menu: Update unit test to use focus instead of activate method --- diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js index 42a661d05..b3d5c2b02 100644 --- a/tests/unit/menu/menu_core.js +++ b/tests/unit/menu/menu_core.js @@ -16,10 +16,10 @@ test("accessibility", function () { equals( ac.attr("role"), "listbox", "main role"); equals( ac.attr("aria-activedescendant"), undefined, "aria attribute not yet active"); var item = ac.find( "li:first" ).find( "a" ).attr( "id", "xid" ).end(); - ac.menu( "activate", $.Event(), item ); + ac.menu( "focus", $.Event(), item ); equals( ac.attr("aria-activedescendant"), "xid", "aria attribute, id from dom"); var item = ac.find( "li:last" ); - ac.menu( "activate", $.Event(), item ); + ac.menu( "focus", $.Event(), item ); equals( ac.attr("aria-activedescendant"), "menu1-activedescendant", "aria attribute, generated id"); });