Methods
test(field_data, test_params) → {boolean}
Each extending subclass of FieldTest will supply a test method.
The object parameter 'field_data' will supply data from the fields of a Form (HTML form).
The test method will a also take test parameters, which will supply the syntactic and semantic
contraints on the value of the paritcular type of field represented by the class.
Parameters:
| Name | Type | Description |
|---|---|---|
field_data |
object | |
test_params |
object |
- Source:
Returns:
- true if the test passes
- Type
- boolean