mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: Unit tests whitespace and linting/cleanup
This commit is contained in:
parent
d5c74f77c8
commit
51bd6f8927
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user