diff options
author | Richard Hughes <richard@hughsie.com> | 2017-08-06 08:41:03 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-08-06 08:41:07 +0100 |
commit | 91f05ff451fd0aa036dc2b416feffe3e9ae0d320 (patch) | |
tree | 004aa2d831bfe8971259b384d2cbddad71e26661 | |
parent | 0facd796c3e2d5f5d9da0d1d4a682d30a6ffb77c (diff) | |
download | appstream-glib-91f05ff451fd0aa036dc2b416feffe3e9ae0d320.tar.gz |
trivial: Fix the self tests from the last commit
Of course this was going to change the number of warnings... coffee time...
-rw-r--r-- | libappstream-glib/as-self-test.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index b3f043b..798d991 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -2130,9 +2130,7 @@ as_test_app_validate_file_bad_func (void) } as_test_app_validate_check (probs, AS_PROBLEM_KIND_ATTRIBUTE_INVALID, - "<id> has invalid type attribute"); - as_test_app_validate_check (probs, AS_PROBLEM_KIND_MARKUP_INVALID, - "<id> does not have correct extension for kind"); + "<component> has invalid type attribute"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_TAG_INVALID, "<metadata_license> is not valid"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_TAG_INVALID, @@ -2192,13 +2190,13 @@ as_test_app_validate_file_bad_func (void) "<content_rating> required for game"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_MARKUP_INVALID, "<id> has invalid character"); - g_assert_cmpint (probs->len, ==, 36); + g_assert_cmpint (probs->len, ==, 35); /* again, harder */ probs2 = as_app_validate (app, AS_APP_VALIDATE_FLAG_STRICT, &error); as_test_app_validate_check (probs2, AS_PROBLEM_KIND_TAG_INVALID, "XML data contains unknown tag"); - g_assert_cmpint (probs2->len, ==, 42); + g_assert_cmpint (probs2->len, ==, 41); } static void @@ -2368,8 +2366,6 @@ as_test_app_validate_style_func (void) "<name> cannot end in '.'"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_STYLE_INCORRECT, "<summary> is too short"); - as_test_app_validate_check (probs, AS_PROBLEM_KIND_MARKUP_INVALID, - "<id> does not have correct extension for kind"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_STYLE_INCORRECT, "Not enough <screenshot> tags"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_STYLE_INCORRECT, @@ -2378,7 +2374,7 @@ as_test_app_validate_style_func (void) "<url> is not present"); as_test_app_validate_check (probs, AS_PROBLEM_KIND_TAG_MISSING, "<translation> not specified"); - g_assert_cmpint (probs->len, ==, 12); + g_assert_cmpint (probs->len, ==, 11); } static void |