Selectmenu tests: lint fixes

This commit is contained in:
Felix Nagel 2012-11-13 21:58:23 +01:00
parent daec559c98
commit 2bb459f1b6
2 changed files with 6 additions and 10 deletions

View File

@ -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");

View File

@ -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" );
});