From: Scott González Date: Tue, 27 Oct 2015 20:32:30 +0000 (-0400) Subject: Controlgroup: Test cleanup X-Git-Tag: 1.12.0-beta.1~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e0b2a580d9aeccc935c8735a97dca1b2707d75b;p=jquery-ui.git Controlgroup: Test cleanup --- diff --git a/tests/unit/controlgroup/common.js b/tests/unit/controlgroup/common.js index 70fcfc3e9..1a62d971b 100644 --- a/tests/unit/controlgroup/common.js +++ b/tests/unit/controlgroup/common.js @@ -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 diff --git a/tests/unit/controlgroup/methods.js b/tests/unit/controlgroup/methods.js index 16f594fa6..4bc384f5e 100644 --- a/tests/unit/controlgroup/methods.js +++ b/tests/unit/controlgroup/methods.js @@ -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(); - } ); } ); } ); diff --git a/tests/unit/controlgroup/options.js b/tests/unit/controlgroup/options.js index 0a1b88f1b..565d4b893 100644 --- a/tests/unit/controlgroup/options.js +++ b/tests/unit/controlgroup/options.js @@ -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( {