mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu tests: Added test for widget() method.
This commit is contained in:
parent
66156aa36b
commit
fb87e1c557
@ -128,5 +128,19 @@ test("refresh - disabled optgroup", function () {
|
||||
}
|
||||
});
|
||||
|
||||
test( "widget", function() {
|
||||
expect( 4 );
|
||||
var element = $('#speed').selectmenu(),
|
||||
widgetElement = element.selectmenu( "widget" ),
|
||||
menuWidgetElement = element.selectmenu( "menuWidget" );
|
||||
|
||||
element.selectmenu("refresh");
|
||||
|
||||
equal( widgetElement.length, 1, "widget: one element" );
|
||||
ok( widgetElement.is("a.ui-button"), "widget: button element" );
|
||||
|
||||
equal( menuWidgetElement.length, 1, "menuWidget: one element" );
|
||||
ok( menuWidgetElement.is("ul.ui-menu"), "menuWidget: menu element" );
|
||||
});
|
||||
|
||||
})( jQuery );
|
||||
|
Loading…
Reference in New Issue
Block a user