Skip to content
Permalink
Browse files

Menu tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 355a1a6 commit 2e491e0bb747da7dd1d465e78cc46e9c98237051
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/unit/menu/menu_methods.js
@@ -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

0 comments on commit 2e491e0

Please sign in to comment.
You can’t perform that action at this time.