From 1bc98830c5a3ffe5a43e5e05730064cb149f25bd Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 28 Oct 2013 14:11:05 -0700 Subject: [PATCH] tests: add a ignore-qualified markup-collect case Add a case to markup-collect that exercises the new IGNORE_QUALIFIED flag. https://bugzilla.gnome.org/show_bug.cgi?id=665634 --- glib/tests/markup-collect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glib/tests/markup-collect.c b/glib/tests/markup-collect.c index 46d2a4262..b9890b7e5 100644 --- a/glib/tests/markup-collect.c +++ b/glib/tests/markup-collect.c @@ -96,6 +96,9 @@ static struct test tests[] = { "", "" }, { "", "" }, + { "", "" }, + { "some text is in here", "" }, + { "", "", G_MARKUP_ERROR_MISSING_ATTRIBUTE, "'mb'" }, @@ -147,7 +150,7 @@ test_collect (gconstpointer d) gboolean result; string = g_string_new (""); - ctx = g_markup_parse_context_new (&parser, 0, string, NULL); + ctx = g_markup_parse_context_new (&parser, G_MARKUP_IGNORE_QUALIFIED, string, NULL); result = g_markup_parse_context_parse (ctx, test->document, -1, &error);