diff options
author | Felix Nagel <info@felixnagel.com> | 2012-11-13 21:58:23 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-11-13 21:58:23 +0100 |
commit | 2bb459f1b645fa252a41e4e96651c103fd39d3ad (patch) | |
tree | a845b8307de955135709a354a34385c89e86aa48 /tests | |
parent | daec559c981a410089f3c0d310f6a5986142c9a5 (diff) | |
download | jquery-ui-2bb459f1b645fa252a41e4e96651c103fd39d3ad.tar.gz jquery-ui-2bb459f1b645fa252a41e4e96651c103fd39d3ad.zip |
Selectmenu tests: lint fixes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_core.js | 6 | ||||
-rw-r--r-- | tests/unit/selectmenu/selectmenu_methods.js | 10 |
2 files changed, 6 insertions, 10 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js index 5b596fe89..54e06cf40 100644 --- a/tests/unit/selectmenu/selectmenu_core.js +++ b/tests/unit/selectmenu/selectmenu_core.js @@ -6,8 +6,7 @@ test("accessibility", function () { var links, element = $('#speed').selectmenu(), button = element.selectmenu("widget"), - menu = element.selectmenu("menuWidget"), - selected = element.find("option:selected"); + menu = element.selectmenu("menuWidget"); button.simulate( "focus" ); links = menu.find("li.ui-menu-item a"); @@ -71,8 +70,7 @@ $.each([ var links, element = $(settings.selector).selectmenu(), button = element.selectmenu("widget"), - menu = element.selectmenu("menuWidget"), - selected = element.find("option:selected"); + menu = element.selectmenu("menuWidget"); button.simulate( "focus" ); links = menu.find("li.ui-menu-item a"); 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" ); }); |