Selectmenu: Unit tests whitespace and linting/cleanup

This commit is contained in:
Jörn Zaefferer 2012-02-21 18:08:14 +01:00
parent d5c74f77c8
commit 51bd6f8927
4 changed files with 46 additions and 46 deletions

View File

@ -37,7 +37,7 @@ test("enable / disable", function () {
menu = widget.filter(".ui-selectmenu-menu"),
link = button.find("a");
element.selectmenu("disable")
element.selectmenu("disable");
ok( element.selectmenu("option", "disabled"), "disable: widget option" );
equals( element.attr("disabled"), "disabled", "disable: native select disabled" );
equals( button.attr("aria-disabled"), "true", "disable: button wrapper ARIA" );
@ -46,7 +46,7 @@ test("enable / disable", function () {
equals( menu.attr("aria-disabled"), "true", "disable: menu wrapper ARIA" );
equals( menu.children("ul").attr("aria-disabled"), "true", "disable: menu ARIA" );
element.selectmenu("enable")
element.selectmenu("enable");
ok( !element.selectmenu("option", "disabled"), "enable: widget option" );
equals( element.attr("disabled"), undefined, "enable: native select disabled" );
equals( button.attr("aria-disabled"), "false", "enable: button wrapper ARIA" );
@ -122,7 +122,7 @@ test("refresh - disabled optgroup", function () {
var element = $('#files').selectmenu(),
widget = element.selectmenu("widget"),
button = widget.filter(".ui-selectmenu-button"),
menu = widget.filter(".ui-selectmenu-menu");
menu = widget.filter(".ui-selectmenu-menu"),
originalDisabledOptgroup = element.find("optgroup").first(),
originalDisabledOptions = originalDisabledOptgroup.find("option");