Add manual Components.Validator::validator method

Support manual validation where needed, add unit tests.

This also slightly changes the behaviour of non-required field, since
an empty non-required field should be valid.
This commit is contained in:
Michael Gratton 2019-11-20 14:45:04 +11:00 committed by Michael James Gratton
parent c9fc877d12
commit ca6cbecb83
4 changed files with 127 additions and 10 deletions

View file

@ -84,6 +84,7 @@ geary_test_client_sources = [
'client/application/application-configuration-test.vala',
'client/components/client-web-view-test.vala',
'client/components/client-web-view-test-case.vala',
'client/components/components-validator-test.vala',
'client/composer/composer-web-view-test.vala',
'client/util/util-avatar-test.vala',
'client/util/util-cache-test.vala',