test( "refresh - disabled optgroup", function () {
- var i,
- item,
+ var i, item,
element = $( "#files" ).selectmenu(),
menu = element.selectmenu( "menuWidget" ).parent(),
originalDisabledOptgroup = element.find( "optgroup" ).first(),
originalDisabledOptions = originalDisabledOptgroup.find( "option" );
- expect(2 + originalDisabledOptions.length);
+ expect( 2 + originalDisabledOptions.length );
originalDisabledOptgroup.attr( "disabled", "disabled" );
element.selectmenu( "refresh" );
-(function ($) {
+(function ( $ ) {
module( "selectmenu: options" );
element.selectmenu( "destroy" );
element.selectmenu({
- appendTo: detached[0]
+ appendTo: detached[ 0 ]
});
equal( element.selectmenu( "menuWidget" ).parent().parent()[0], detached[0], "detached DOM element" );
element.selectmenu( "destroy" );
test( "CSS styles", function () {
expect( 2 );
- var element = $("#speed").selectmenu(),
- button = element.selectmenu("widget"),
- menu = element.selectmenu("menuWidget");
+ var element = $( "#speed" ).selectmenu(),
+ button = element.selectmenu( "widget" ),
+ menu = element.selectmenu( "menuWidget" );
element.selectmenu( "open" );
ok( button.hasClass( "ui-corner-top" ) && !button.hasClass( "ui-corner-all" ) && button.find( "span.ui-icon" ).hasClass( "ui-icon-triangle-1-s" ), "button styles dropdown" );