diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-24 10:07:24 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-02-24 10:07:24 +0100 |
commit | 3f353cc8fb8a3b27452e29d81af3105734da7aa1 (patch) | |
tree | 76c60438cb050e33b1d00427fee2756e22ac3e9e /tests | |
parent | 0d659d44c3a95ff380ec88c7338ef270bf04683c (diff) | |
download | jquery-ui-3f353cc8fb8a3b27452e29d81af3105734da7aa1.tar.gz jquery-ui-3f353cc8fb8a3b27452e29d81af3105734da7aa1.zip |
Menu: Update unit test to use focus instead of activate method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/menu/menu_core.js | 4 |
1 files changed, 2 insertions, 2 deletions
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"); }); |