Skip to content
Permalink
Browse files

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.
  • Loading branch information...
jzaefferer authored and arschmitz committed Oct 6, 2015
1 parent 81c4fdf commit 9ff3d8fb90b53731401744a9f077c78b27aef1e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/controlgroup/methods.js
@@ -35,7 +35,7 @@ test( "enable", function( assert ) {
var tests = {
"checkboxradio": "<input type='checkbox'>",
"selectmenu": "<select><option>foo</option></select>",
"button": "<button>"
"button": "<button>button text</button>"
},
orientations = {
"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
for ( i = 0; i < 4; 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 );
element.append( control );

0 comments on commit 9ff3d8f

Please sign in to comment.
You can’t perform that action at this time.