Skip to content
Permalink
Browse files

Menu: Update unit test to use focus instead of activate method

  • Loading branch information...
jzaefferer committed Feb 24, 2011
1 parent 0d659d4 commit 3f353cc8fb8a3b27452e29d81af3105734da7aa1
Showing with 2 additions and 2 deletions.
  1. +2 −2 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");
});

0 comments on commit 3f353cc

Please sign in to comment.
You can’t perform that action at this time.