aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/controlgroup/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controlgroup/methods.js')
-rw-r--r--tests/unit/controlgroup/methods.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/unit/controlgroup/methods.js b/tests/unit/controlgroup/methods.js
index 94f189747..9f1e4201e 100644
--- a/tests/unit/controlgroup/methods.js
+++ b/tests/unit/controlgroup/methods.js
@@ -148,4 +148,27 @@ $.each( tests, function( widget, html ) {
} );
} );
+QUnit.test( "Child Classes Option: init", function( assert ) {
+ assert.expect( 1 );
+ var selectmenu = $( "#select-pre" ).selectmenu( {
+ classes: {
+ "ui-selectmenu-button-closed": "test-class"
+ }
+ } );
+ var controlgroup = $( ".controlgroup-pre" ).controlgroup();
+ assert.hasClasses( selectmenu.selectmenu( "widget" ), "test-class" );
+} );
+
+QUnit.test( "Child Classes Option: refresh", function( assert ) {
+ assert.expect( 1 );
+ var controlgroup = $( ".controlgroup-refresh" ).controlgroup();
+ var selectmenu = $( "#select-refresh" ).selectmenu( {
+ classes: {
+ "ui-selectmenu-button-closed": "test-class"
+ }
+ } );
+ controlgroup.controlgroup( "refresh" );
+ assert.hasClasses( selectmenu.selectmenu( "widget" ), "test-class" );
+} );
+
} );