module( "selectmenu: core" );
-asyncTest("accessibility", function () {
+asyncTest( "accessibility", function() {
var links,
element = $( "#speed" ).selectmenu(),
button = element.selectmenu( "widget" ),
button.simulate( "focus" );
links = menu.find( "li.ui-menu-item a" );
- expect(12 + links.length * 2);
+ expect( 12 + links.length * 2 );
setTimeout(function() {
equal( button.attr( "role" ), "combobox", "button link role" );
}, 1 );
});
- asyncTest("state synchronization - after click on item - " + settings.type, function () {
- expect(4);
+ asyncTest( "state synchronization - after click on item - " + settings.type, function () {
+ expect( 4 );
var links,
element = $( settings.selector ).selectmenu(),
});
asyncTest( "state synchronization - after focus item and keydown on button - " + settings.type, function () {
- expect(4);
+ expect( 4 );
var links,
element = $( settings.selector ).selectmenu(),
links.first().simulate( "mouseover" ).trigger( "click" );
// open menu again and hover item
button.simulate( "click" );
- links.eq(3).simulate( "mouseover" );
+ links.eq( 3 ).simulate( "mouseover" );
// close and use keyboard control on button
button.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } );
button.simulate( "focus" );