aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_dataforms_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.dataforms: Add support for XEP-0122: Data Forms ValidationKim Alvefur2018-09-011-0/+22
| | | | Initially only basic validation of xs:integer
* util.dataforms: Allow field names to be different from the 'var' attributeKim Alvefur2018-09-011-0/+15
| | | | | | This should allow the usage of long prefixes and namespace-like names to be contained to the XML representation of the form, so that the code can use more convenient names.
* util.dataforms: Allow passing the current values to be used in stead of ↵Kim Alvefur2018-08-051-0/+39
| | | | omitted fields
* util.dataforms: Add failing test for #1177Kim Alvefur2018-06-301-0/+27
|
* util.dataforms: Include a fixed field in testKim Alvefur2018-07-151-0/+10
|
* util.dataforms: Add a simple function for identifying form typesKim Alvefur2018-06-021-0/+9
| | | | | This is meant to allow identifying forms without parsing them completely.
* util.dataforms: Add initial testsKim Alvefur2018-06-021-0/+305
This covers basic form generation, that the fields have the correct attributes, children and text content.