]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Cleanup contextmenu demo and fix aria unit test to ignore empty
authorjzaefferer <joern.zaefferer@gmail.com>
Fri, 25 Feb 2011 17:58:44 +0000 (18:58 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Fri, 25 Feb 2011 17:58:44 +0000 (18:58 +0100)
string values

demos/menu/contextmenu.html
tests/unit/menu/menu_core.js

index 1fa4daaeb20ce26e8976250ae545b5c0a35cd21a..7869d43643c6b482b859f64d653dd9c8f92e3722 100644 (file)
@@ -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();
index b3d5c2b027a4fd4192cb3b4c15ac7c38a8f2ae36..5b00e17e8b877d44ad764be560a4d8da1ebe8b63 100644 (file)
@@ -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");