Skip to content

Commit

Permalink
Menu tests: Added test for widget() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 355a1a6 commit 2e491e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/menu/menu_methods.js
Expand Up @@ -60,6 +60,14 @@ test( "refresh", function() {
equal( element.find( ".ui-menu-item" ).length, 5, "Incorrect number of menu items" ); 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 focus method


// TODO: test blur method // TODO: test blur method
Expand Down

0 comments on commit 2e491e0

Please sign in to comment.