diff options
author | Benjamin Otte <otte@redhat.com> | 2012-04-09 02:54:17 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-09 03:09:44 +0200 |
commit | 122cde95284f94afc39fa934c4e145a03105fda8 (patch) | |
tree | 5b1a98a4a2e077fac638bf5c0785b1c700614140 /tests/css | |
parent | b7ad432654cd0c09fa414965c324783edbe18335 (diff) | |
download | gtk+-122cde95284f94afc39fa934c4e145a03105fda8.tar.gz |
tests: Add a uint8 test
... to ensure the last test works.
Diffstat (limited to 'tests/css')
-rw-r--r-- | tests/css/parser/test-css-parser.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/css/parser/test-css-parser.c b/tests/css/parser/test-css-parser.c index feea8a567e..ebe2b2bb5a 100644 --- a/tests/css/parser/test-css-parser.c +++ b/tests/css/parser/test-css-parser.c @@ -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) { |