aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/controlgroup
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-10-27 16:32:30 -0400
committerScott González <scott.gonzalez@gmail.com>2015-10-27 16:32:30 -0400
commit6e0b2a580d9aeccc935c8735a97dca1b2707d75b (patch)
tree7233ee2874cf146f462cdd89c50dcc410e2647a0 /tests/unit/controlgroup
parentd4b0699578f5cfc3c69be13af64e2440214b112e (diff)
downloadjquery-ui-6e0b2a580d9aeccc935c8735a97dca1b2707d75b.tar.gz
jquery-ui-6e0b2a580d9aeccc935c8735a97dca1b2707d75b.zip
Controlgroup: Test cleanup
Diffstat (limited to 'tests/unit/controlgroup')
-rw-r--r--tests/unit/controlgroup/common.js4
-rw-r--r--tests/unit/controlgroup/methods.js2
-rw-r--r--tests/unit/controlgroup/options.js1
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( {