Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parsley test suite for jQuery, unminified version
- passes: 42
- failures: 18
- duration: 0.55s
- Parsley test suite for jQuery, unminified version
- Test Parsley auto binding
- ✖
- Items with validation methods inside a form validated by Parsley are binded ‣
- Error: expected false to equal true
- ✖
- Items with validation methods can be validated as stand-alone too ‣
- Error: expected false to equal true
- ✓
- Do not bind an input that type is hidden ‣
- expect( $( '#hidden' ).hasClass( 'parsley-validated' ) ).to.be( false );
- expect( $( '#hidden' ).parsley( 'validate' ) ).to.be( null );
- ✖
- Should bind a DOM element with parsley-bind value set to true ‣
- Error: expected false to equal true
- Test inputs events
- ✖
- Validators are triggered on jQuery events: change, keyup ‣
- Error: expected false to equal true
- Test Parsley error & success detection
- ✓
- If chars < minChars, on field change, do not trigger validation ‣
- ✓
- If field fail one validation test, add error class ‣
- ✓
- If field verify all validation tests, add success class ‣
- Test Parsley error messages management
- ✓
- Test two errors on the same field ‣
- ✓
- If one error is fixed, show the remaining one ‣
- ✓
- If there are no more errors, full validation ok ‣
- ✓
- If custom message is set, show only it and show it once ‣
- ✓
- Test that error messages could be html ‣
- ✓
- Test prioritized validators ‣
- Test validators
- ✓
- notblank ‣
- ✓
- required - parsley-api ‣
- ✓
- required - class-api ‣
- ✖
- required - html5-api ‣
- Error: expected false to equal true
- ✖
- required - html5-api bis ‣
- Error: expected false to equal true
- ✓
- required - select multiple ‣
- ✓
- minlength ‣
- ✓
- maxlength ‣
- ✓
- rangelength ‣
- ✓
- min ‣
- ✖
- min html5 ‣
- Error: expected false to equal true
- ✖
- max html5 ‣
- Error: expected false to equal true
- ✓
- max ‣
- ✓
- range ‣
- ✓
- regexp ‣
- ✓
- regexp with custom flag ‣
- ✓
- pattern html5-regexp ‣
- ✓
- url ‣
- ✖
- url html5 ‣
- Error: expected null to equal true
- ✓
- url strict + global config overriding type message ‣
- ✓
- email ‣
- ✖
- email html5 ‣
- Error: expected false to equal true
- ✖
- range html5 ‣
- Error: expected false to equal true
- ✓
- digits ‣
- ✓
- dateIso ‣
- ✓
- phone ‣
- ✖
- tel ‣
- Error: expected false to equal true
- ✓
- number ‣
- ✓
- aphanum ‣
- ✖
- equalTo ‣
- Error: expected '' to equal 'This value should be the same.'
- ✓
- customvalidator ‣
- Test radio / checkboxes specific validators
- ✓
- mincheck ‣
- ✓
- mincheck parsley-group ‣
- ✓
- maxcheck ‣
- ✓
- rangecheck ‣
- Test remote validator
- Test parameters and config
- ✓
- Make an ajax request when remote-validator is used to passed url ‣
- ✓
- Test ajax call parameters overriding ‣
- Test ASYNC ajax calls results
- ✓
- Test success true ‣
- ✓
- Test error 404 ‣
- ✓
- Test success false ‣
- ✓
- Test success 1 ‣
- ✖
- Test success 0 ‣
- Error: Out of stack space
- ✖
- Test success with { success: "message" } ‣
- Error: Out of stack space
- ✖
- "after each" hook ‣
- TypeError: Object doesn't support property or method 'restore'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement