From 6e0b2a580d9aeccc935c8735a97dca1b2707d75b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 27 Oct 2015 16:32:30 -0400 Subject: [PATCH] Controlgroup: Test cleanup --- tests/unit/controlgroup/common.js | 4 ++-- tests/unit/controlgroup/methods.js | 2 +- tests/unit/controlgroup/options.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) 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( { -- 2.39.5