Validation Routines Test File

This page is the test page for all of the validation functions in the "ctValidateXXXXXXXX.js" family of validation files. If any changes are made to the functions in any of the validation files, those changes must be tested by running this test page since, typically, the program code of one validation function relies on (and also affects) other validation functions.

All JavaScript files in the family of validation files are to be included in the "head" portion of this page's program code. The "body" portion of this page's code contains the various test conditions used to test each validation function.

All validation test conditions are developed to return a value of "true". Therefore, using this test page to verify all changes to validation functions consists of the following steps:

  1. Make the changes to the validation functions.
  2. Add to this page's "head" section any newly-created validation files.
  3. Add to this page's "body" section a new set of conditions needed to test any newly-created validation functions (if required), using the NOT operator, as required, to make sure that each condition results in all conditions returning a value of "true".
  4. Display this page in the browser.
  5. Use the browser's "Search" feature to search on this page for the string "= false" (including the space after the equals sign).
  6. Not finding any occurrences of this search string provides confidence that any modifications to validation functions have not adversely affected the validation functions.

When making changes to validation functions, note the use of the "EmptyOK" variables. (See comments in the files ctValidateCommon.js, ctValidateNumber.js, etc.).