]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu tests: fix lint issues
authorFelix Nagel <info@felixnagel.com>
Tue, 4 Jun 2013 19:16:13 +0000 (21:16 +0200)
committerFelix Nagel <info@felixnagel.com>
Tue, 4 Jun 2013 19:16:13 +0000 (21:16 +0200)
tests/unit/selectmenu/selectmenu_events.js
tests/unit/selectmenu/selectmenu_methods.js

index 4881e0bff8bfd471930f37a873ea18de969b605a..572f502e88f100990988fd04c848ff2829871648 100644 (file)
@@ -9,8 +9,7 @@ module( "selectmenu: events", {
 asyncTest( "change", function () {
        expect( 5 );
 
-       var that = this,
-               optionIndex = 1,
+       var optionIndex = 1,
                button, menu, options;
 
        this.element.selectmenu({
@@ -41,7 +40,7 @@ test( "close", function () {
        expect( 4 );
 
        this.element.selectmenu({
-               close: function ( event, ui ) {
+               close: function ( event ) {
                        ok( event, "close event fired on close" );
                        equal( event.type, "selectmenuclose", "event type set to selectmenuclose" );
                }
@@ -71,10 +70,10 @@ asyncTest( "focus", function () {
                }
        });
 
-       button = this.element.selectmenu( "widget" ),
+       button = this.element.selectmenu( "widget" );
        menu = this.element.selectmenu( "menuWidget" );
 
-       button.simulate( "focus" )
+       button.simulate( "focus" );
 
        setTimeout(function() {
                button.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
@@ -97,7 +96,7 @@ test( "open", function () {
        expect( 2 );
 
        this.element.selectmenu({
-               open: function ( event, ui ) {
+               open: function ( event ) {
                        ok( event, "open event fired on open" );
                        equal( event.type, "selectmenuopen", "event type set to selectmenuopen" );
                }
index 05f2404d1c139d8d5716ac41c799bc740870cdb8..a4b4fabbe3a3081cc05d514401f3655780008aed 100644 (file)
@@ -81,7 +81,7 @@ asyncTest( "refresh - change selected option", function () {
        setTimeout(function() {
                equal( element.find( "option:selected" ).text(), button.text(), "button text after focus" );
 
-               element[ 0 ].selectedIndex = 0
+               element[ 0 ].selectedIndex = 0;
                element.selectmenu( "refresh" );
 
                equal( element.find( "option:selected" ).text(), button.text(), "button text after changing selected option" );