]> source.dussan.org Git - jquery-ui.git/commitdiff
Controlgroup: Test cleanup
authorScott González <scott.gonzalez@gmail.com>
Tue, 27 Oct 2015 20:32:30 +0000 (16:32 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 27 Oct 2015 20:32:30 +0000 (16:32 -0400)
tests/unit/controlgroup/common.js
tests/unit/controlgroup/methods.js
tests/unit/controlgroup/options.js

index 70fcfc3e9eeb0937026f923bc9777ddef007868d..1a62d971bdd52017c4e4e6ec26033b8f914d4efd 100644 (file)
@@ -8,6 +8,8 @@ define( [
 
 common.testWidget( "controlgroup", {
        defaults: {
+               classes: {},
+               direction: "horizontal",
                disabled: null,
                items: {
                        "button": "input[type=button], input[type=submit], input[type=reset], button, a",
@@ -16,9 +18,7 @@ common.testWidget( "controlgroup", {
                        "spinner": ".ui-spinner-input",
                        "controlgroupLabel": ".ui-controlgroup-label"
                },
-               direction: "horizontal",
                onlyVisible: true,
-               classes: {},
 
                // Callbacks
                create: null
index 16f594fa6b84babc57f363da0d3fd9eb179c81e4..4bc384f5ee1def3935cace06f077090f5bb9c8cf 100644 (file)
@@ -14,6 +14,7 @@ test( "destroy", function( assert ) {
                $( ".controlgroup" ).controlgroup().controlgroup( "destroy" );
        } );
 } );
+
 test( "disable", function( assert ) {
        expect( 2 );
        var element = $( ".controlgroup" ).controlgroup().controlgroup( "disable" );
@@ -142,7 +143,6 @@ $.each( tests, function( widget, html ) {
 
                        // remove the controlgroup before we start the next set
                        element.remove();
-
                } );
        } );
 } );
index 0a1b88f1bd93d6b7e4147aa15e6c42a9cbe116fc..565d4b893f324dd53e14da98dcdd5b8a297f619b 100644 (file)
@@ -59,6 +59,7 @@ $.widget( "ui.test", {
        // Controlgroup requires a refresh method to exist
        refresh: $.noop
 } );
+
 test( "items: custom widget", function() {
        expect( 2 );
        var element = $( ".controlgroup" ).controlgroup( {