diff options
author | Ian McInerney <ian.s.mcinerney@ieee.org> | 2020-06-14 17:15:09 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2020-06-15 10:27:40 +0100 |
commit | 0306be0e508364eb7672bf9ba0d2d8541a4517e4 (patch) | |
tree | bdd503810c8862d94de1b893ab9e0437193c4ac9 /libappstream-glib/as-self-test.c | |
parent | 31f5093a06288ee5aa907ada6e53ae4c0cbaa88d (diff) | |
download | appstream-glib-0306be0e508364eb7672bf9ba0d2d8541a4517e4.tar.gz |
Test launchable tags in validation
Diffstat (limited to 'libappstream-glib/as-self-test.c')
-rw-r--r-- | libappstream-glib/as-self-test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index d7c726e..78af947 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -2433,7 +2433,11 @@ as_test_app_validate_file_bad_func (void) "<release> timestamp is in the future"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_MARKUP_INVALID, "<id> has invalid character"); - g_assert_cmpint (probs->len, ==, 21); + as_test_app_validate_check (probs, AS_PROBLEM_KIND_ATTRIBUTE_INVALID, + "<launchable> has invalid type attribute"); + as_test_app_validate_check (probs, AS_PROBLEM_KIND_VALUE_MISSING, + "<launchable> missing value"); + g_assert_cmpint (probs->len, ==, 23); /* again, harder */ probs2 = as_app_validate (app, AS_APP_VALIDATE_FLAG_STRICT, &error); @@ -2441,7 +2445,7 @@ as_test_app_validate_file_bad_func (void) g_assert (probs2 != NULL); as_test_app_validate_check (probs2, AS_PROBLEM_KIND_TAG_INVALID, "XML data contains unknown tag"); - g_assert_cmpint (probs2->len, ==, 35); + g_assert_cmpint (probs2->len, ==, 37); } static void |