diff options
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_methods.js')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_methods.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/unit/selectmenu/selectmenu_methods.js b/tests/unit/selectmenu/selectmenu_methods.js index d90098dcf..68ff6110c 100644 --- a/tests/unit/selectmenu/selectmenu_methods.js +++ b/tests/unit/selectmenu/selectmenu_methods.js @@ -91,7 +91,6 @@ test("refresh - disabled option", function () { var disabledItem, element = $('#speed').selectmenu(), - button = element.selectmenu("widget").parent(), menu = element.selectmenu("menuWidget").parent(); element.attr("disabled", "disabled"); @@ -108,7 +107,6 @@ test("refresh - disabled optgroup", function () { var i, item, element = $('#files').selectmenu(), - button = element.selectmenu("widget").parent(), menu = element.selectmenu("menuWidget").parent(), originalDisabledOptgroup = element.find("optgroup").first(), originalDisabledOptions = originalDisabledOptgroup.find("option"); @@ -132,13 +130,13 @@ test( "widget", function() { expect( 4 ); var element = $('#speed').selectmenu(), widgetElement = element.selectmenu( "widget" ), - menuWidgetElement = element.selectmenu( "menuWidget" ); - + 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" ); }); |