aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/controlgroup/methods.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-10-06 16:07:33 +0200
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:03:00 -0400
commit9ff3d8fb90b53731401744a9f077c78b27aef1e4 (patch)
treebde260a6f41699d8420df7e651eee6212c5545cf /tests/unit/controlgroup/methods.js
parent81c4fdfecd52070a9f7b79bb0fb81f2f60fc27b5 (diff)
downloadjquery-ui-9ff3d8fb90b53731401744a9f077c78b27aef1e4.tar.gz
jquery-ui-9ff3d8fb90b53731401744a9f077c78b27aef1e4.zip
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.
Diffstat (limited to 'tests/unit/controlgroup/methods.js')
-rw-r--r--tests/unit/controlgroup/methods.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/controlgroup/methods.js b/tests/unit/controlgroup/methods.js
index 77715f8b8..16f594fa6 100644
--- a/tests/unit/controlgroup/methods.js
+++ b/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 );