mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu tests: Whitespace and general cleanup
This commit is contained in:
parent
a74ac174cc
commit
86eaa30994
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user