diff options
author | Richard Hughes <richard@hughsie.com> | 2014-12-10 13:16:08 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-12-10 13:16:41 +0000 |
commit | eef40d2bc15a08818b6e14e240c07de0fe276325 (patch) | |
tree | 09fda10c2cec2262c7c1b3e9383a4f794b2c5f19 /libappstream-builder/asb-self-test.c | |
parent | 284890c2936a6b98b66ce005e5fac8a33407e998 (diff) | |
download | appstream-glib-eef40d2bc15a08818b6e14e240c07de0fe276325.tar.gz |
Output the full filename for local icons
This is the same as the recent 'remote' icon fix.
Diffstat (limited to 'libappstream-builder/asb-self-test.c')
-rw-r--r-- | libappstream-builder/asb-self-test.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c index cb0cc4f..11862c0 100644 --- a/libappstream-builder/asb-self-test.c +++ b/libappstream-builder/asb-self-test.c @@ -793,15 +793,25 @@ asb_test_context_extra_appstream_func (void) ret = as_store_from_file (store, file, NULL, NULL, &error); g_assert_no_error (error); g_assert (ret); - g_assert_cmpint (as_store_get_size (store), ==, 1); + g_assert_cmpint (as_store_get_size (store), ==, 2); app = as_store_get_app_by_id (store, "epiphany-test.desktop"); g_assert (app != NULL); + app = as_store_get_app_by_id (store, "epiphany-local.desktop"); + g_assert (app != NULL); /* check it matches what we expect */ xml = as_store_to_xml (store, AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE); expected_xml = "<components version=\"0.8\" builder_id=\"appstream-glib:4\" origin=\"asb-self-test\">\n" "<component type=\"webapp\">\n" + "<id>epiphany-local.desktop</id>\n" + "<name>Local</name>\n" + "<summary>My local webapp</summary>\n" + "<description><p>This is awesome</p></description>\n" + "<icon type=\"local\">/usr/share/icons/hicolor/256x256/apps/fedora-logo-icon.png</icon>\n" + "<url type=\"homepage\">http://www.hughski.com/</url>\n" + "</component>\n" + "<component type=\"webapp\">\n" "<id>epiphany-test.desktop</id>\n" "<name>Test</name>\n" "<summary>Please use my awesome webapp</summary>\n" |