Skip to content
Browse files

Revert "Menu: Cleanup contextmenu demo and fix aria unit test to igno…

…re empty"

This reverts commit baf28d2.
  • Loading branch information...
1 parent baf28d2 commit 039736ed8fb8489548726e6b24856d8cd5dc8521 Jay Merrifield committed Feb 25, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 demos/menu/contextmenu.html
  2. +1 −1 tests/unit/menu/menu_core.js
View
3 demos/menu/contextmenu.html
@@ -23,7 +23,8 @@
select: function(event, ui) {
$(this).hide();
$("#log").append("<div>Selected " + ui.item.text() + "</div>");
- }
+ },
+ input: $(this)
}).hide();
}).click(function(event) {
var menu = $(this).next();
View
2 tests/unit/menu/menu_core.js
@@ -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");
- ok( !ac.attr("aria-activedescendant"), "aria attribute not yet active");
+ 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( "focus", $.Event(), item );
equals( ac.attr("aria-activedescendant"), "xid", "aria attribute, id from dom");

0 comments on commit 039736e

Please sign in to comment.
Something went wrong with that request. Please try again.