Skip to content

Commit

Permalink
Selectmenu Tests: fixed spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed May 7, 2013
1 parent adcfa63 commit ef8c792
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/selectmenu/selectmenu_core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


module( "selectmenu: core" ); module( "selectmenu: core" );


asyncTest("accessibility", function () { asyncTest( "accessibility", function() {
var links, var links,
element = $( "#speed" ).selectmenu(), element = $( "#speed" ).selectmenu(),
button = element.selectmenu( "widget" ), button = element.selectmenu( "widget" ),
Expand All @@ -11,7 +11,7 @@ asyncTest("accessibility", function () {
button.simulate( "focus" ); button.simulate( "focus" );
links = menu.find( "li.ui-menu-item a" ); links = menu.find( "li.ui-menu-item a" );


expect(12 + links.length * 2); expect( 12 + links.length * 2 );


setTimeout(function() { setTimeout(function() {
equal( button.attr( "role" ), "combobox", "button link role" ); equal( button.attr( "role" ), "combobox", "button link role" );
Expand Down Expand Up @@ -88,8 +88,8 @@ $.each([
}, 1 ); }, 1 );
}); });


asyncTest("state synchronization - after click on item - " + settings.type, function () { asyncTest( "state synchronization - after click on item - " + settings.type, function () {
expect(4); expect( 4 );


var links, var links,
element = $( settings.selector ).selectmenu(), element = $( settings.selector ).selectmenu(),
Expand Down Expand Up @@ -123,7 +123,7 @@ $.each([
}); });


asyncTest( "state synchronization - after focus item and keydown on button - " + settings.type, function () { asyncTest( "state synchronization - after focus item and keydown on button - " + settings.type, function () {
expect(4); expect( 4 );


var links, var links,
element = $( settings.selector ).selectmenu(), element = $( settings.selector ).selectmenu(),
Expand All @@ -141,7 +141,7 @@ $.each([
links.first().simulate( "mouseover" ).trigger( "click" ); links.first().simulate( "mouseover" ).trigger( "click" );
// open menu again and hover item // open menu again and hover item
button.simulate( "click" ); button.simulate( "click" );
links.eq(3).simulate( "mouseover" ); links.eq( 3 ).simulate( "mouseover" );
// close and use keyboard control on button // close and use keyboard control on button
button.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } ); button.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } );
button.simulate( "focus" ); button.simulate( "focus" );
Expand Down

0 comments on commit ef8c792

Please sign in to comment.