aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-25 18:58:44 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-25 18:58:44 +0100
commitbaf28d2c9d1ddc775b2eedaaf9b818935fbafe64 (patch)
treea996888f6b01db6b07edce9cf94d666246627086 /tests/unit/menu
parent540b78d92026de6e287144b9bf37221699ccb9e8 (diff)
downloadjquery-ui-baf28d2c9d1ddc775b2eedaaf9b818935fbafe64.tar.gz
jquery-ui-baf28d2c9d1ddc775b2eedaaf9b818935fbafe64.zip
Menu: Cleanup contextmenu demo and fix aria unit test to ignore empty
string values
Diffstat (limited to 'tests/unit/menu')
-rw-r--r--tests/unit/menu/menu_core.js2
1 files changed, 1 insertions, 1 deletions
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");