Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. Parsley test suite for jQuery, unminified version
  2.  
  3.  
  4. passes: 42
  5. failures: 18
  6. duration: 0.55s
  7.  
  8. Parsley test suite for jQuery, unminified version
  9.  
  10. Test Parsley auto binding
  11. Items with validation methods inside a form validated by Parsley are binded ‣
  12. Error: expected false to equal true
  13. Items with validation methods can be validated as stand-alone too ‣
  14. Error: expected false to equal true
  15. Do not bind an input that type is hidden ‣
  16. expect( $( '#hidden' ).hasClass( 'parsley-validated' ) ).to.be( false );
  17. expect( $( '#hidden' ).parsley( 'validate' ) ).to.be( null );
  18. Should bind a DOM element with parsley-bind value set to true ‣
  19. Error: expected false to equal true
  20.  
  21.  
  22. Test inputs events
  23. Validators are triggered on jQuery events: change, keyup ‣
  24. Error: expected false to equal true
  25.  
  26.  
  27. Test Parsley error & success detection
  28. If chars < minChars, on field change, do not trigger validation ‣
  29.  
  30. If field fail one validation test, add error class ‣
  31.  
  32. If field verify all validation tests, add success class ‣
  33.  
  34.  
  35.  
  36. Test Parsley error messages management
  37. Test two errors on the same field ‣
  38.  
  39. If one error is fixed, show the remaining one ‣
  40.  
  41. If there are no more errors, full validation ok ‣
  42.  
  43. If custom message is set, show only it and show it once ‣
  44.  
  45. Test that error messages could be html ‣
  46.  
  47. Test prioritized validators ‣
  48.  
  49.  
  50.  
  51. Test validators
  52. notblank ‣
  53.  
  54. required - parsley-api ‣
  55.  
  56. required - class-api ‣
  57.  
  58. required - html5-api ‣
  59. Error: expected false to equal true
  60. required - html5-api bis ‣
  61. Error: expected false to equal true
  62. required - select multiple ‣
  63.  
  64. minlength ‣
  65.  
  66. maxlength ‣
  67.  
  68. rangelength ‣
  69.  
  70. min ‣
  71.  
  72. min html5 ‣
  73. Error: expected false to equal true
  74. max html5 ‣
  75. Error: expected false to equal true
  76. max ‣
  77.  
  78. range ‣
  79.  
  80. regexp ‣
  81.  
  82. regexp with custom flag ‣
  83.  
  84. pattern html5-regexp ‣
  85.  
  86. url ‣
  87.  
  88. url html5 ‣
  89. Error: expected null to equal true
  90. url strict + global config overriding type message ‣
  91.  
  92. email ‣
  93.  
  94. email html5 ‣
  95. Error: expected false to equal true
  96. range html5 ‣
  97. Error: expected false to equal true
  98. digits ‣
  99.  
  100. dateIso ‣
  101.  
  102. phone ‣
  103.  
  104. tel ‣
  105. Error: expected false to equal true
  106. number ‣
  107.  
  108. aphanum ‣
  109.  
  110. equalTo ‣
  111. Error: expected '' to equal 'This value should be the same.'
  112. customvalidator ‣
  113.  
  114.  
  115. Test radio / checkboxes specific validators
  116. mincheck ‣
  117.  
  118. mincheck parsley-group ‣
  119.  
  120. maxcheck ‣
  121.  
  122. rangecheck ‣
  123.  
  124.  
  125.  
  126. Test remote validator
  127.  
  128. Test parameters and config
  129. Make an ajax request when remote-validator is used to passed url ‣
  130.  
  131. Test ajax call parameters overriding ‣
  132.  
  133.  
  134.  
  135. Test ASYNC ajax calls results
  136. Test success true ‣
  137.  
  138. Test error 404 ‣
  139.  
  140. Test success false ‣
  141.  
  142. Test success 1 ‣
  143.  
  144. Test success 0 ‣
  145. Error: Out of stack space
  146. Test success with { success: "message" } ‣
  147. Error: Out of stack space
  148. "after each" hook ‣
  149. TypeError: Object doesn't support property or method 'restore'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement