Skip to content
Permalink
Browse files

Menu: Cleanup contextmenu demo and fix aria unit test to ignore empty

string values
  • Loading branch information...
jzaefferer committed Feb 25, 2011
1 parent 540b78d commit baf28d2c9d1ddc775b2eedaaf9b818935fbafe64
Showing with 2 additions and 3 deletions.
  1. +1 −2 demos/menu/contextmenu.html
  2. +1 −1 tests/unit/menu/menu_core.js
@@ -23,8 +23,7 @@
select: function(event, ui) {
$(this).hide();
$("#log").append("<div>Selected " + ui.item.text() + "</div>");
},
input: $(this)
}
}).hide();
}).click(function(event) {
var menu = $(this).next();
@@ -14,7 +14,7 @@ test("accessibility", function () {

ok( ac.hasClass("ui-menu ui-widget ui-widget-content ui-corner-all"), "menu class");
equals( ac.attr("role"), "listbox", "main role");
equals( ac.attr("aria-activedescendant"), undefined, "aria attribute not yet active");
ok( !ac.attr("aria-activedescendant"), "aria attribute not yet active");
var item = ac.find( "li:first" ).find( "a" ).attr( "id", "xid" ).end();
ac.menu( "focus", $.Event(), item );
equals( ac.attr("aria-activedescendant"), "xid", "aria attribute, id from dom");

0 comments on commit baf28d2

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