Auto-tools/Projects/CrossWeave/Test Format/Form Data
From MozillaWiki
< Auto-tools | Projects | CrossWeave | Test Format
Contents
Test Format
A FormData asset list is an array of objects, each with the following properties:
- fieldname: required.
- value: required.
- date: the date the form data was used, expressed in hours from the present, so 0 means now, and -24 means 24 hours ago. Optional, defaults to 0.
For example:
formdata1: * fieldname: testing value: success date: -1 * fieldname: testing value: failure date: -2 * fieldname: username value: joe
Actions
FormData only supports all actions except modify.
Example
For a more detailed, example, see the CrossWeave formdata unit test.
Notes
Note 1, CrossWeave support the delete action for FormData, but Weave currently does not correctly sync deleted form data, see bug 568363.
Note 2, Weave currently does not sync FormData dates, so the date field is ignored when performing verify and verify-not actions. See bug 552531.