tests: Add a uint8 test

... to ensure the last test works.
This commit is contained in:
Benjamin Otte 2012-04-09 02:54:17 +02:00
parent b7ad432654
commit 122cde9528

View File

@ -287,6 +287,15 @@ add_tests_for_files_in_directory (GFile *dir)
g_list_free_full (files, g_object_unref);
}
static gboolean
parse_uint8 (const char *string,
GValue *value,
GError **error)
{
g_value_set_uchar (value, 42);
return TRUE;
}
int
main (int argc, char **argv)
{
@ -382,6 +391,12 @@ main (int argc, char **argv)
GTK_TYPE_STATE_FLAGS,
GTK_STATE_FLAG_NORMAL,
G_PARAM_READABLE));
gtk_style_properties_register_property (parse_uint8,
g_param_spec_uchar ("uint8-property",
"uint8 property",
"test uint8 properties",
0, G_MAXUINT8, 0,
G_PARAM_READABLE));
if (argc < 2)
{