Auto-tools/Projects/CrossWeave/Test Format/Form Data: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with '== Test Format == A FormData asset list is an array of objects, each with the following properties: * '''fieldname''': required. * '''value''': required. * '''date''': the time…')
 
No edit summary
Line 5: Line 5:
* '''fieldname''': required.
* '''fieldname''': required.
* '''value''': required.
* '''value''': required.
* '''date''': the time 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.
* '''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:
For example:
Line 18: Line 18:


FormData only supports all actions except '''modify'''.
FormData only supports all actions except '''modify'''.
== Example ==
For a more detailed, example, see the [http://hg.mozilla.org/automation/crossweave/file/c3fce3f5052d/unittests/test_formdata.json 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 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}}.
Confirmed users
1,905

edits

Navigation menu