aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_core.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/menu/menu_core.js')
-rw-r--r--tests/unit/menu/menu_core.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js
index d7082664e..ee737ceb1 100644
--- a/tests/unit/menu/menu_core.js
+++ b/tests/unit/menu/menu_core.js
@@ -5,20 +5,20 @@ module( "menu: core" );
test( "accessibility", function () {
expect( 5 );
var item,
- menu = $( "#menu1" ).menu(),
+ element = $( "#menu1" ).menu(),
item0 = $( "li:eq(0) a" );
- ok( menu.hasClass( "ui-menu ui-widget ui-widget-content ui-corner-all" ), "menu class");
- equal( menu.attr( "role" ), "menu", "main role" );
- ok( !menu.attr( "aria-activedescendant" ), "aria attribute not yet active" );
+ ok( element.hasClass( "ui-menu ui-widget ui-widget-content ui-corner-all" ), "menu class");
+ equal( element.attr( "role" ), "menu", "main role" );
+ ok( !element.attr( "aria-activedescendant" ), "aria attribute not yet active" );
- item = menu.find( "li:first" ).find( "a" ).attr( "id", "xid" ).end();
- menu.menu( "focus", $.Event(), item );
- equal( menu.attr("aria-activedescendant"), "xid", "aria attribute, id from DOM" );
+ item = element.find( "li:first" ).find( "a" ).attr( "id", "xid" ).end();
+ element.menu( "focus", $.Event(), item );
+ equal( element.attr( "aria-activedescendant" ), "xid", "aria attribute, id from DOM" );
- item = menu.find( "li:last" );
- menu.menu( "focus", $.Event(), item );
- ok( /^ui-id-\d+$/.test( menu.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
+ item = element.find( "li:last" );
+ element.menu( "focus", $.Event(), item );
+ ok( /^ui-id-\d+$/.test( element.attr( "aria-activedescendant" ) ), "aria attribute, generated id");
});
})( jQuery );