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