summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2007-06-27 00:37:50 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-06-27 00:37:50 +0000
commitae800a34fa31f83feca666c0684d867409df109f (patch)
treec30a5eab9930ec81c155841858c90e53d5c900ed /tests
parent1d2955bcafb23d56c55e515cdc078ca3152e2446 (diff)
downloadgtk+-ae800a34fa31f83feca666c0684d867409df109f.tar.gz
Set an error if we encounter properties without values set (#451303,
* gtk/gtkbuilder.h (enum): * gtk/gtkbuilderparser.c (end_element): * tests/buildertest.c (test_parser): Set an error if we encounter properties without values set (#451303, Philip Withnall) svn path=/trunk/; revision=18252
Diffstat (limited to 'tests')
-rw-r--r--tests/buildertest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/buildertest.c b/tests/buildertest.c
index 3c6ab29b17..3367bdcd1f 100644
--- a/tests/buildertest.c
+++ b/tests/buildertest.c
@@ -72,6 +72,13 @@ gboolean test_parser (void)
g_return_val_if_fail (strcmp (error->message, "<input>:1:74 'object' is not a valid tag here") == 0, FALSE);
g_error_free (error);
+ error = NULL;
+ gtk_builder_add_from_string (builder, "<interface><object class=\"GtkWindow\" id=\"a\"><property name=\"type\"/></object></interface>", -1, &error);
+ g_assert (error != NULL);
+ g_return_val_if_fail (strcmp (error->message, "<input>:1:67 <property> must have a value set") == 0, FALSE);
+ g_error_free (error);
+
+
return TRUE;
}