File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,17 @@ module.exports = function(grunt) {
127
127
)
128
128
}
129
129
} ,
130
+ validation : {
131
+ options : {
132
+ files : [ ] . concat (
133
+ TESTS . beforeTestFiles ,
134
+ 'src/kendo.core.js' ,
135
+ 'src/kendo.validator.js' ,
136
+ TESTS . afterTestFiles ,
137
+ 'tests/validation/validator.js'
138
+ )
139
+ }
140
+ } ,
130
141
legacyUnit : {
131
142
options : {
132
143
browsers : browserOption ? [ browserOption ] : [ ] ,
Original file line number Diff line number Diff line change 787
787
} ) ;
788
788
789
789
test ( "valid class is added to the valid inputs" , function ( ) {
790
- var input = $ ( '<input type="text" required />' ) ,
791
- validator = setup ( input ) ;
790
+ var input = $ ( '<input type="text" required />' ) ,
791
+ validator = setup ( input ) ;
792
792
793
- input . val ( 'foo' ) ;
793
+ input . val ( 1 ) ;
794
794
795
- validator . validate ( ) ;
795
+ validator . validate ( ) ;
796
796
797
- ok ( input . hasClass ( "k-valid" ) ) ;
797
+ ok ( input . hasClass ( "k-valid" ) ) ;
798
798
} ) ;
799
799
800
800
test ( "aria-invalid is added to the invalid input" , function ( ) {
You can’t perform that action at this time.
0 commit comments