From 6acc6bdd7f2fcf56d02699683de6fbec62316294 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 7 Mar 2013 23:53:43 +0100 Subject: [PATCH] Selectmenu tests: adjust tests due to removed button wrapper element --- tests/unit/selectmenu/selectmenu_methods.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/selectmenu/selectmenu_methods.js b/tests/unit/selectmenu/selectmenu_methods.js index 6c81df9b8..213ee0eb7 100644 --- a/tests/unit/selectmenu/selectmenu_methods.js +++ b/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 );