@@ -1300,14 +1300,14 @@ describe('input', function() {
1300
1300
1301
1301
describe ( 'minlength' , function ( ) {
1302
1302
1303
- it ( 'should invalid shorter than given minlength' , function ( ) {
1303
+ it ( 'should invalidate values that are shorter than the given minlength' , function ( ) {
1304
1304
compileInput ( '<input type="text" ng-model="value" ng-minlength="3" />' ) ;
1305
1305
1306
1306
changeInputValueTo ( 'aa' ) ;
1307
- expect ( scope . value ) . toBeUndefined ( ) ;
1307
+ expect ( inputElm ) . toBeInvalid ( ) ;
1308
1308
1309
1309
changeInputValueTo ( 'aaa' ) ;
1310
- expect ( scope . value ) . toBe ( 'aaa' ) ;
1310
+ expect ( inputElm ) . toBeValid ( ) ;
1311
1311
} ) ;
1312
1312
1313
1313
it ( 'should listen on ng-minlength when minlength is observed' , function ( ) {
@@ -1328,14 +1328,14 @@ describe('input', function() {
1328
1328
1329
1329
describe ( 'maxlength' , function ( ) {
1330
1330
1331
- it ( 'should invalid shorter than given maxlength' , function ( ) {
1331
+ it ( 'should invalidate values that are longer than the given maxlength' , function ( ) {
1332
1332
compileInput ( '<input type="text" ng-model="value" ng-maxlength="5" />' ) ;
1333
1333
1334
1334
changeInputValueTo ( 'aaaaaaaa' ) ;
1335
- expect ( scope . value ) . toBeUndefined ( ) ;
1335
+ expect ( inputElm ) . toBeInvalid ( ) ;
1336
1336
1337
1337
changeInputValueTo ( 'aaa' ) ;
1338
- expect ( scope . value ) . toBe ( 'aaa' ) ;
1338
+ expect ( inputElm ) . toBeValid ( ) ;
1339
1339
} ) ;
1340
1340
1341
1341
it ( 'should listen on ng-maxlength when maxlength is observed' , function ( ) {
0 commit comments