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.
This commit is contained in:
Jörn Zaefferer 2015-10-06 16:07:33 +02:00 committed by Alexander Schmitz
parent 81c4fdfecd
commit 9ff3d8fb90

View File

@ -35,7 +35,7 @@ test( "enable", function( assert ) {
var tests = { var tests = {
"checkboxradio": "<input type='checkbox'>", "checkboxradio": "<input type='checkbox'>",
"selectmenu": "<select><option>foo</option></select>", "selectmenu": "<select><option>foo</option></select>",
"button": "<button>" "button": "<button>button text</button>"
}, },
orientations = { orientations = {
"horizontal": [ "horizontal": [
@ -108,7 +108,7 @@ $.each( tests, function( widget, html ) {
// Add a label for each element and then append the element to the control group // Add a label for each element and then append the element to the control group
for ( i = 0; i < 4; i++ ) { for ( i = 0; i < 4; i++ ) {
control = $( html ).attr( "id", "id" + i ) control = $( html ).attr( "id", "id" + i )
.add( $( "<label>" ).clone().attr( "for", "id" + i ) ); .add( $( "<label>label text</label>" ).clone().attr( "for", "id" + i ) );
controls.push( control ); controls.push( control );
element.append( control ); element.append( control );