]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu Tests: clean up spacing and intention
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 19:03:12 +0000 (21:03 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 19:07:59 +0000 (21:07 +0200)
tests/unit/selectmenu/selectmenu_methods.js
tests/unit/selectmenu/selectmenu_options.js

index 99692f53da12262f3af56dfaf3570ff3201342f4..b7e717bbc12fb42c195ed5401718e63a45ab9ca7 100644 (file)
@@ -123,14 +123,13 @@ test( "refresh - disabled option", function () {
 
 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" );
index 7313e1dbc609fd7dbe554e5376275bbee505e192..720142759115212aee0eef8235f6102f21451049 100644 (file)
@@ -1,4 +1,4 @@
-(function ($) {
+(function ( $ ) {
 
 module( "selectmenu: options" );
 
@@ -34,7 +34,7 @@ test( "appendTo another element", function () {
        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" );
@@ -48,9 +48,9 @@ test( "appendTo another element", function () {
 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" );