mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu tests: Added test for widget() method.
This commit is contained in:
parent
355a1a6f0a
commit
2e491e0bb7
@ -60,6 +60,14 @@ test( "refresh", function() {
|
||||
equal( element.find( ".ui-menu-item" ).length, 5, "Incorrect number of menu items" );
|
||||
});
|
||||
|
||||
test( "widget", function() {
|
||||
expect( 2 );
|
||||
var element = $( "#menu1" ).menu(),
|
||||
widgetElement = element.menu( "widget" );
|
||||
equal( widgetElement.length, 1, "one element" );
|
||||
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
|
||||
});
|
||||
|
||||
// TODO: test focus method
|
||||
|
||||
// TODO: test blur method
|
||||
|
Loading…
Reference in New Issue
Block a user