Skip to content

Commit 9ff3d8f

Browse files
jzaeffererarschmitz
authored andcommitted
Controlgroup: Fix refresh method tests by adding text content to button
In IE8, the empty elements cause issues. Adding text content makes sense, since empty elements are useless.
1 parent 81c4fdf commit 9ff3d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/controlgroup/methods.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test( "enable", function( assert ) {
3535
var tests = {
3636
"checkboxradio": "<input type='checkbox'>",
3737
"selectmenu": "<select><option>foo</option></select>",
38-
"button": "<button>"
38+
"button": "<button>button text</button>"
3939
},
4040
orientations = {
4141
"horizontal": [
@@ -108,7 +108,7 @@ $.each( tests, function( widget, html ) {
108108
// Add a label for each element and then append the element to the control group
109109
for ( i = 0; i < 4; i++ ) {
110110
control = $( html ).attr( "id", "id" + i )
111-
.add( $( "<label>" ).clone().attr( "for", "id" + i ) );
111+
.add( $( "<label>label text</label>" ).clone().attr( "for", "id" + i ) );
112112

113113
controls.push( control );
114114
element.append( control );

0 commit comments

Comments
 (0)