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.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/controlgroup/methods.js b/tests/unit/controlgroup/methods.js
index a9d781f2e..09271d39f 100644
--- a/tests/unit/controlgroup/methods.js
+++ b/tests/unit/controlgroup/methods.js
@@ -177,4 +177,12 @@ QUnit.test( "Child Classes Option: refresh", function( assert ) {
assert.hasClasses( selectmenu.selectmenu( "widget" ), "test-class" );
} );
+QUnit.test( "Controlgroup Label: refresh", function( assert ) {
+ assert.expect( 1 );
+ var controlgroup = $( ".controlgroup-refresh" ).controlgroup();
+ controlgroup.controlgroup( "refresh" );
+ assert.strictEqual( controlgroup.find( ".ui-controlgroup-label-contents" ).length, 1,
+ "Controlgroup label does not re-wrap on refresh" );
+} );
+
} );