@@ -148,7 +148,7 @@ var testSuite = function () {
148
148
expect ( $ ( '#hidden' ) . hasClass ( 'parsley-validated' ) ) . to . be ( false ) ;
149
149
expect ( $ ( '#hidden' ) . parsley ( 'validate' ) ) . to . be ( null ) ;
150
150
} )
151
- it ( 'Should bind a DOM element with data -bind value set to true' , function ( ) {
151
+ it ( 'Should bind a DOM element with parsley -bind value set to true' , function ( ) {
152
152
expect ( $ ( '#bindNonFormInput' ) . hasClass ( 'parsley-validated' ) ) . to . be ( true ) ;
153
153
} )
154
154
} )
@@ -246,7 +246,7 @@ var testSuite = function () {
246
246
triggerSubmitValidation ( '#notnull' , 'foo' ) ;
247
247
expect ( $ ( '#notnull' ) . hasClass ( 'parsley-success' ) ) . to . be ( true ) ;
248
248
} )
249
- it ( 'required - data -api' , function ( ) {
249
+ it ( 'required - parsley -api' , function ( ) {
250
250
triggerSubmitValidation ( '#required' , '' ) ;
251
251
expect ( $ ( '#required' ) . hasClass ( 'parsley-error' ) ) . to . be ( true ) ;
252
252
expect ( getErrorMessage ( '#required' , 'required' ) ) . to . be ( 'This value is required.' ) ;
@@ -493,7 +493,7 @@ var testSuite = function () {
493
493
$ ( '#checkbox-mincheck2' ) . attr ( 'checked' , 'checked' ) ;
494
494
expect ( $ ( '#checkbox-mincheck1' ) . parsley ( 'validate' ) ) . to . be ( true ) ;
495
495
} )
496
- it ( 'mincheck data -group' , function ( ) {
496
+ it ( 'mincheck parsley -group' , function ( ) {
497
497
$ ( '#checkbox-mincheckgroup1' ) . attr ( 'checked' , 'checked' ) ;
498
498
expect ( $ ( '#checkbox-mincheckgroup1' ) . parsley ( 'validate' ) ) . to . be ( false ) ;
499
499
expect ( getErrorMessage ( '#checkbox-mincheckgroup1' , 'mincheck' ) ) . to . be ( 'You must select at least 2 choices.' ) ;
@@ -614,15 +614,15 @@ var testSuite = function () {
614
614
} )
615
615
616
616
/***************************************
617
- override value with data -value
617
+ override value with parsley -value
618
618
***************************************/
619
- describe ( 'Override value with data -value' , function ( ) {
620
- it ( 'required - data -value is empty, value is empty' , function ( ) {
619
+ describe ( 'Override value with parsley -value' , function ( ) {
620
+ it ( 'required - parsley -value is empty, value is empty' , function ( ) {
621
621
triggerSubmitValidation ( '#datavalue1' , '' ) ;
622
622
expect ( $ ( '#datavalue1' ) . hasClass ( 'parsley-error' ) ) . to . be ( true ) ;
623
623
expect ( getErrorMessage ( '#datavalue1' , 'required' ) ) . to . be ( 'This value is required.' ) ;
624
624
} )
625
- it ( 'required - data -value has value, value is empty' , function ( ) {
625
+ it ( 'required - parsley -value has value, value is empty' , function ( ) {
626
626
triggerSubmitValidation ( '#datavalue2' , '' ) ;
627
627
expect ( $ ( '#datavalue2' ) . hasClass ( 'parsley-success' ) ) . to . be ( true ) ;
628
628
} )
@@ -689,7 +689,7 @@ var testSuite = function () {
689
689
expect ( getErrorMessage ( '#requiredchanged1' , 'required' ) ) . to . be ( 'required 1' ) ;
690
690
expect ( getErrorMessage ( '#requiredchanged2' , 'required' ) ) . to . be ( 'required 2' ) ;
691
691
} )
692
- it ( 'Change error messages with data -api' , function ( ) {
692
+ it ( 'Change error messages with parsley -api' , function ( ) {
693
693
triggerSubmitValidation ( '#requiredchanged3' , '' ) ;
694
694
expect ( getErrorMessage ( '#requiredchanged3' , 'required' ) ) . to . be ( 'custom required' ) ;
695
695
@@ -819,7 +819,7 @@ var testSuite = function () {
819
819
$ ( '#alwaysValidate' ) . parsley ( 'validate' ) ;
820
820
expect ( $ ( '#alwaysValidate' ) . data ( 'count' ) ) . to . be ( 3 ) ;
821
821
} )
822
- it ( 'Test data -trigger="change" on multiple inputs' , function ( ) {
822
+ it ( 'Test parsley -trigger="change" on multiple inputs' , function ( ) {
823
823
$ ( '#checkbox-maxcheck1' ) . parsley ( 'reset' ) ;
824
824
$ ( '#checkbox-maxcheck1' ) . attr ( 'checked' , 'checked' ) ;
825
825
$ ( '#checkbox-maxcheck2' ) . attr ( 'checked' , 'checked' ) ;
@@ -910,7 +910,7 @@ var testSuite = function () {
910
910
expect ( $ ( '#reset-textarea' ) . hasClass ( 'parsley-error' ) ) . to . be ( false ) ;
911
911
} )
912
912
it ( 'test parsley dynamic add item' , function ( ) {
913
- $ ( '#dynamic-form' ) . append ( '<input type="text" data -type="email" class="dynamic-email" data -trigger="change" value="foo" />' ) ;
913
+ $ ( '#dynamic-form' ) . append ( '<input type="text" parsley -type="email" class="dynamic-email" parsley -trigger="change" value="foo" />' ) ;
914
914
var ParsleyForm = $ ( '#dynamic-form' ) . parsley ( ) ;
915
915
expect ( ParsleyForm . items . length ) . to . be ( 0 ) ;
916
916
expect ( $ ( '#dynamic-form' ) . parsley ( 'validate' ) ) . to . be ( true ) ;
@@ -947,7 +947,7 @@ var testSuite = function () {
947
947
expect ( $ ( '#onthefly' ) . hasClass ( 'parsley-error' ) ) . to . be ( false ) ;
948
948
expect ( $ ( '#onthefly' ) . hasClass ( 'parsley-validated' ) ) . to . be ( false ) ;
949
949
} )
950
- it ( 'test setting custom error container within data -attributes' , function ( ) {
950
+ it ( 'test setting custom error container within parsley -attributes' , function ( ) {
951
951
expect ( $ ( '#dataerrorcontainer-form' ) . parsley ( 'validate' ) ) . to . be ( false ) ;
952
952
expect ( $ ( '#mycustomerrorcontainer ul.parsley-error-list' ) . length ) . to . be ( 1 ) ;
953
953
} )
0 commit comments