Skip to content
Permalink
Browse files

Selectmenu tests: adjust tests due to removed button wrapper element

  • Loading branch information
fnagel committed Mar 7, 2013
1 parent 66ba390 commit 6acc6bdd7f2fcf56d02699683de6fbec62316294
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/unit/selectmenu/selectmenu_methods.js
@@ -148,16 +148,16 @@ test( "refresh - disabled optgroup", function () {
test( "widget", function() {
expect( 4 );
var element = $( "#speed" ).selectmenu(),
widgetElement = element.selectmenu( "widget" ),
menuWidgetElement = element.selectmenu( "menuWidget" );
button = element.selectmenu( "widget" ),
menu = element.selectmenu( "menuWidget" );

element.selectmenu( "refresh" );

equal( widgetElement.length, 1, "widget: one element" );
ok( widgetElement.is( "span.ui-button" ), "widget: button element" );
equal( button.length, 1, "widget: one element" );
ok( button.is( "span.ui-selectmenu-button" ), "widget: button element" );

equal( menuWidgetElement.length, 1, "menuWidget: one element" );
ok( menuWidgetElement.is( "ul.ui-menu" ), "menuWidget: menu element" );
equal( menu.length, 1, "menuWidget: one element" );
ok( menu.is( "ul.ui-menu" ), "menuWidget: menu element" );
});

})( jQuery );

0 comments on commit 6acc6bd

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