summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-04-21 10:53:56 +0100
committerRichard Hughes <richard@hughsie.com>2017-04-21 10:54:05 +0100
commit08cb0ec129d71740c14b27f4bfd8c2fe79ad5d34 (patch)
tree2eef23856efb19b149f65aa263be9d6174b2c13a
parent24024e9f9645957cf9839c684aa37414ea0528dc (diff)
downloadappstream-glib-08cb0ec129d71740c14b27f4bfd8c2fe79ad5d34.tar.gz
trivial: Use the new custom tag in the self tests
-rw-r--r--libappstream-glib/as-self-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index 29951e8..782f9be 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -1670,9 +1670,9 @@ as_test_app_func (void)
"<lang percentage=\"90\">en_GB</lang>\n"
"<lang>pl</lang>\n"
"</languages>\n"
- "<metadata>\n"
+ "<custom>\n"
"<value key=\"SomethingRandom\"/>\n"
- "</metadata>\n"
+ "</custom>\n"
"</component>\n";
g_autoptr(AsNodeContext) ctx = NULL;
g_autoptr(AsApp) app = NULL;
@@ -1756,7 +1756,7 @@ as_test_app_func (void)
/* back to node */
root = as_node_new ();
- as_node_context_set_version (ctx, 0.8);
+ as_node_context_set_version (ctx, 1.0);
n = as_app_node_insert (app, root, ctx);
xml = as_node_to_xml (n, AS_NODE_TO_XML_FLAG_FORMAT_MULTILINE);
ret = as_test_compare_lines (xml->str, src, &error);