diff options
author | Johan Dahlin <johan@src.gnome.org> | 2007-06-27 00:37:50 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-06-27 00:37:50 +0000 |
commit | ae800a34fa31f83feca666c0684d867409df109f (patch) | |
tree | c30a5eab9930ec81c155841858c90e53d5c900ed /tests | |
parent | 1d2955bcafb23d56c55e515cdc078ca3152e2446 (diff) | |
download | gtk+-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.c | 7 |
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; } |