]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Update unit test to use focus instead of activate method
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:07:24 +0000 (10:07 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:07:24 +0000 (10:07 +0100)
tests/unit/menu/menu_core.js

index 42a661d0500976a5fe7145b6e9d14cce3028db6c..b3d5c2b027a4fd4192cb3b4c15ac7c38a8f2ae36 100644 (file)
@@ -16,10 +16,10 @@ test("accessibility", function () {
        equals( ac.attr("role"), "listbox", "main role");
        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( "activate", $.Event(), item );
+       ac.menu( "focus", $.Event(), item );
        equals( ac.attr("aria-activedescendant"), "xid", "aria attribute, id from dom");
        var item = ac.find( "li:last" );
-       ac.menu( "activate", $.Event(), item );
+       ac.menu( "focus", $.Event(), item );
        equals( ac.attr("aria-activedescendant"), "menu1-activedescendant", "aria attribute, generated id");
 });