File tree Expand file tree Collapse file tree 3 files changed +59
-2
lines changed Expand file tree Collapse file tree 3 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 142
142
equals ( this , el [ 0 ] , "option: context of callback" ) ;
143
143
equals ( e . type , 'multiselectclick' , 'option: event type in callback' ) ;
144
144
equals ( ui . value , "2" , "option: ui.value equals" ) ;
145
- equals ( ui . text , "Option 2" , "option: ui.title equals" ) ;
145
+ equals ( ui . text , "Option 2" , "option: ui.text equals" ) ;
146
146
147
147
if ( times === 0 ) {
148
148
equals ( ui . checked , true , "option: ui.checked equals" ) ;
155
155
ok ( true , 'event: triggering the click event on the second checkbox triggers multiselectclick' ) ;
156
156
equals ( this , el [ 0 ] , 'event: context of event' ) ;
157
157
equals ( ui . value , "2" , "event: ui.value equals" ) ;
158
- equals ( ui . text , "Option 2" , "event: ui.title equals" ) ;
158
+ equals ( ui . text , "Option 2" , "event: ui.text equals" ) ;
159
159
160
160
if ( times === 0 ) {
161
161
equals ( ui . checked , true , "option: ui.checked equals" ) ;
Original file line number Diff line number Diff line change 122
122
equals ( el . multiselect ( "getChecked" ) . length , 0 , 'number of checkboxes returned after unchecking all and calling getChecked' ) ;
123
123
el . multiselect ( "destroy" ) ;
124
124
} ) ;
125
+
126
+ test ( "getUnchecked" , function ( ) {
127
+ expect ( 2 ) ;
128
+
129
+ el = $ ( "select" ) . multiselect ( ) . multiselect ( "checkAll" ) ;
130
+ equals ( el . multiselect ( "getUnchecked" ) . length , 0 , 'number of checkboxes returned after checking all and calling getUnchecked' ) ;
131
+ el . multiselect ( "uncheckAll" ) ;
132
+ equals ( el . multiselect ( "getUnchecked" ) . length , 9 , 'number of checkboxes returned after unchecking all and calling getUnchecked' ) ;
133
+ el . multiselect ( "destroy" ) ;
134
+ } ) ;
125
135
126
136
test ( "refresh" , function ( ) {
127
137
expect ( 4 ) ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments