@@ -11,7 +11,7 @@ test("Checkbox", function() {
11
11
var input = $ ( "#check" ) ,
12
12
label = $ ( "label[for=check]" ) ;
13
13
ok ( input . is ( ":visible" ) ) ;
14
- ok ( ! label . hasClass ( ". ui-button) " ) ) ;
14
+ ok ( ! label . hasClass ( "ui-button" ) ) ;
15
15
input . checkboxradio ( ) ;
16
16
equal ( input . is ( ".ui-helper-hidden-accessible.ui-checkboxradio" ) , true ,
17
17
"Input has proper classes" ) ;
@@ -31,9 +31,9 @@ test("Radios", function() {
31
31
} ) ;
32
32
33
33
function assert ( noForm , form1 , form2 ) {
34
- ok ( $ ( "#radio0 .ui-button" + noForm ) . is ( ".ui-state-active" ) ) ;
35
- ok ( $ ( "#radio1 .ui-button" + form1 ) . is ( ".ui-state-active" ) ) ;
36
- ok ( $ ( "#radio2 .ui-button" + form2 ) . is ( ".ui-state-active" ) ) ;
34
+ ok ( $ ( "#radio0 .ui-button" + noForm ) . is ( ".ui-state-active" ) ) ;
35
+ ok ( $ ( "#radio1 .ui-button" + form1 ) . is ( ".ui-state-active" ) ) ;
36
+ ok ( $ ( "#radio2 .ui-button" + form2 ) . is ( ".ui-state-active" ) ) ;
37
37
}
38
38
39
39
test ( "radio groups" , function ( ) {
@@ -93,7 +93,7 @@ if ( !$.ui.ie || ( document.documentMode && document.documentMode > 8 ) ) {
93
93
} ) ;
94
94
}
95
95
test ( "Checkbox creation that requires a matching finds label in all cases" , function ( ) {
96
- expect ( 6 ) ;
96
+ expect ( 7 ) ;
97
97
var group = $ ( "<span><label for='t7092a'></label><input type='checkbox' id='t7092a'></span>" ) ;
98
98
group . find ( "input[type=checkbox]" ) . checkboxradio ( ) ;
99
99
ok ( group . find ( "label" ) . is ( ".ui-button" ) ) ;
@@ -117,6 +117,10 @@ test( "Checkbox creation that requires a matching finds label in all cases", fun
117
117
group = $ ( "<span><label><input type='checkbox' id='t7092f'></label></span>" ) ;
118
118
group . find ( "input[type=checkbox]" ) . checkboxradio ( ) ;
119
119
ok ( group . find ( "label" ) . is ( ".ui-button" ) ) ;
120
+
121
+ var group = $ ( "<span><input type='checkbox' id='check:7534'><label for='check:7534'>Label</label></span>" ) ;
122
+ group . find ( "input" ) . checkboxradio ( ) ;
123
+ ok ( group . find ( "label" ) . is ( ".ui-button" ) , "Found an label with id containing a :" ) ;
120
124
} ) ;
121
125
122
126
asyncTest ( "Resetting a button's form should refresh the visual state of the button widget to match." , function ( ) {
@@ -136,12 +140,6 @@ asyncTest( "Resetting a button's form should refresh the visual state of the but
136
140
start ( ) ;
137
141
} , 1 ) ;
138
142
} ) ;
139
- test ( "Checkbox label selector works for ids with \":\"" , function ( ) {
140
- expect ( 1 ) ;
141
- var group = $ ( "<span><input type='checkbox' id='check:7534'><label for='check:7534'>Label</label></span>" ) ;
142
- group . find ( "input" ) . checkboxradio ( ) ;
143
- ok ( group . find ( "label" ) . is ( ".ui-button" ) , "Found an id with a :" ) ;
144
- } ) ;
145
143
146
144
test ( "Calling checkboxradio on an unsupported element throws an error" , function ( ) {
147
145
expect ( 1 ) ;
0 commit comments