Menu tests: Whitespace and general cleanup

This commit is contained in:
Kris Borchers 2013-07-15 21:54:44 -05:00
parent a74ac174cc
commit 86eaa30994
3 changed files with 21 additions and 21 deletions

View File

@ -18,10 +18,10 @@ test( "handle click on menu", function() {
}
});
log( "click", true );
click( $( "#menu1" ), "1" );
click( element, "1" );
log( "afterclick" );
click( element, "2" );
click( $( "#menu1" ), "3" );
click( element, "3" );
click( element, "1" );
equal( logOutput(), "click,1,afterclick,2,3,1", "Click order not valid." );
});
@ -35,10 +35,10 @@ test( "handle click on custom item menu", function() {
menus: "div"
});
log( "click", true );
click( $( "#menu5" ), "1" );
click( element, "1" );
log( "afterclick" );
click( element, "2" );
click( $( "#menu5" ), "3" );
click( element, "3" );
click( element, "1" );
equal( logOutput(), "click,1,afterclick,2,3,1", "Click order not valid." );
});
@ -607,11 +607,11 @@ test( "ensure default is prevented when clicking on anchors in disabled menus ",
}
});
log( "click", true );
click( $( "#menu1" ), "1" );
click( element, "1" );
log( "afterclick,disable" );
element.menu( "option", "disabled", true );
click( element, "2" );
click( $( "#menu1" ), "3" );
click( element, "3" );
click( element, "1" );
log( "enable" );
element.menu( "option", "disabled", false );