]> source.dussan.org Git - jquery-ui.git/commitdiff
Controlgroup: Fix refresh method tests by adding text content to button
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 6 Oct 2015 14:07:33 +0000 (16:07 +0200)
committerAlexander Schmitz <arschmitz@gmail.com>
Thu, 8 Oct 2015 18:03:00 +0000 (14:03 -0400)
In IE8, the empty elements cause issues. Adding text content makes
sense, since empty elements are useless.

tests/unit/controlgroup/methods.js

index 77715f8b80cde364fc96f1cee2279e0ec69b8227..16f594fa6b84babc57f363da0d3fd9eb179c81e4 100644 (file)
@@ -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 );