From baf28d2c9d1ddc775b2eedaaf9b818935fbafe64 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Fri, 25 Feb 2011 18:58:44 +0100 Subject: Menu: Cleanup contextmenu demo and fix aria unit test to ignore empty string values --- tests/unit/menu/menu_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/menu/menu_core.js') diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js index b3d5c2b02..5b00e17e8 100644 --- a/tests/unit/menu/menu_core.js +++ b/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"); - 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"); -- cgit v1.2.3